Skip to content

Commit

Permalink
Delete the Windows CI release job
Browse files Browse the repository at this point in the history
  • Loading branch information
hedgar2017 committed Jan 16, 2024
1 parent 22f7152 commit 5d0c5d8
Showing 1 changed file with 0 additions and 109 deletions.
109 changes: 0 additions & 109 deletions .github/workflows/build_and_release_binary.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -203,107 +203,6 @@ jobs:
name: release_macos_arm64
path: releases

build_windows_amd64:
runs-on: windows-2019-github-hosted-16core
needs: [setup]
outputs:
version_to_skip: ${{ steps.compare_version.outputs.result }}
steps:

# Had to install node to determine release version.
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '20'

- name: Install semver
run: npm install semver

- name: Check that version is >= 0.6.0
id: compare_version
uses: actions/github-script@v5
with:
script: |
const semver = require('semver');
const currentVersion = '${{ needs.setup.outputs.git_tag }}';
const result = semver.lt(currentVersion, '0.6.0');
console.log(`Is the version < 0.6.0? ${result}`);
return result;
result-encoding: string

- name: Checkout source
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
if: steps.compare_version.outputs.result != 'true'
with:
submodules: recursive
ref: ${{ steps.set.outputs.release_version }}

- name: Install LLVM and Clang
uses: KyleMayes/install-llvm-action@v1
if: steps.compare_version.outputs.result != 'true'
with:
version: "15.0.7"

- name: Prepare environment
if: steps.compare_version.outputs.result != 'true'
run: |
git config --global user.email "[email protected]"
git fetch --all
# try to apply win patch
git cherry-pick 860226e25dca397b5afd70680530963712aff050 || git cherry-pick --abort
# latest llvm for MSVC
git clone -q --depth=1 --branch=main https://github.com/zufuliu/llvm-utils.git c:\projects\llvm-utils
Invoke-Item "c:\projects\llvm-utils\VS2017\install.bat"
clang --version
- name: Install windows Deps
if: steps.compare_version.outputs.result != 'true'
run: |
if ( -not (Test-Path "deps\boost") ) {
New-Item -ItemType Directory -Force -Path "deps"
Invoke-WebRequest -URI "https://github.com/Kitware/CMake/releases/download/v3.27.1/cmake-3.27.1-windows-x86_64.zip" -OutFile cmake.zip
tar -xf cmake.zip
mv cmake-3.27.1-windows-x86_64 "deps\cmake"
# and serving it a page that requires JavaScript.
Invoke-WebRequest -URI "https://boostorg.jfrog.io/artifactory/main/release/1.77.0/source/boost_1_77_0.zip" -OutFile boost.zip
tar -xf boost.zip
cd boost_1_77_0
.\bootstrap.bat --with-toolset=clang
.\b2 -j4 -d0 toolset=clang cxxflags="-stdlib=libc++" linkflags="-stdlib=libc++" link=static runtime-link=static variant=release threading=multi address-model=64 --prefix="..\deps\boost" --with-filesystem --with-system --with-program_options --with-test --with-regex --with-thread install
if ( -not $? ) { throw "Error building boost." }
cd ..
}
- name: Building the Solidity compiler
if: steps.compare_version.outputs.result != 'true'
run: |
$env:path += ";deps\cmake\bin\"
$env:CXXFLAGS="-Wno-narrowing -Qunused-arguments -Wno-everything -DBOOST_REGEX_NO_LIB -D_REGEX_MAX_STACK_COUNT=200000L -DJSON_USE_INT64_DOUBLE_CONVERSION -std=c++17 -stdlib=libc++"
mkdir build
cd build
$boost_dir=(Resolve-Path ..\deps\boost\lib\cmake\Boost-*)
cmake .. -D SOLC_VERSION_ZKEVM="${{ needs.setup.outputs.release_version }}" -D USE_Z3="OFF" -DBoost_DIR="$boost_dir\" -DBoost_USE_STATIC_RUNTIME=1 -DBoost_USE_STATIC_LIBS=1 -DBoost_COMPILER=clang15 -T LLVM_v142 -DPEDANTIC=OFF -DCMAKE_MSVC_RUNTIME_LIBRARY=MultiThreaded
cmake --build . -j 10 --target install --config Release
- name: Prepare binary file name
if: steps.compare_version.outputs.result != 'true'
run: |
mkdir -p releases\windows-amd64
ls .\build\solc\Release\
.\build\solc\Release\solc.exe --version
mv .\build\solc\Release\solc.exe releases\windows-amd64\solc-windows-amd64-${{ needs.setup.outputs.release_version }}.exe
- uses: actions/upload-artifact@83fd05a356d7e2593de66fc9913b3002723633cb # v3
if: steps.compare_version.outputs.result != 'true'
with:
name: release_windows_amd64
path: releases

prepare-release:
runs-on: [ matterlabs-default-infra-runners ]
if: startsWith(github.ref, 'refs/tags/')
Expand All @@ -313,7 +212,6 @@ jobs:
- build_macos_amd64
- build_linux_arm64
- build_linux_amd64
- build_windows_amd64
steps:
- name: Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
Expand Down Expand Up @@ -344,13 +242,6 @@ jobs:
name: release_linux_arm64
path: releases

- name: Download artifact release_windows_amd64
if: needs.build_windows_amd64.outputs.version_to_skip != 'true'
uses: actions/download-artifact@v3
with:
name: release_windows_amd64
path: releases

- name: Generate changelog
id: changelog
shell: bash
Expand Down

0 comments on commit 5d0c5d8

Please sign in to comment.