Skip to content

Commit

Permalink
Disable win64 builds
Browse files Browse the repository at this point in the history
They're breaking and nobody seems to use them
  • Loading branch information
mildbyte authored Apr 17, 2024
1 parent cd8b5c5 commit b718403
Showing 1 changed file with 5 additions and 32 deletions.
37 changes: 5 additions & 32 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,14 @@ jobs:

strategy:
matrix:
build: [linux-x86_64, osx-x86_64, win64]
build: [linux-x86_64, osx-x86_64]
include:
- build: linux-x86_64
os: ubuntu-20.04 # We can update to 22.04 once we're comfortable dropping libssl 1.x support
target: x86_64-unknown-linux-gnu
- build: osx-x86_64
os: macos-latest
target: x86_64-apple-darwin
- build: win64
os: windows-latest
target: x86_64-pc-windows-msvc

steps:
- name: Install prerequisites
Expand All @@ -40,14 +37,7 @@ jobs:
unzip $PROTO_ZIP
echo "$HOME/d/protoc/bin" >> $GITHUB_PATH
export PATH=$PATH:$HOME/d/protoc/bin
if [ "${{ matrix.build }}" = "win64" ]; then
protoc.exe --version
vcpkg integrate install
vcpkg.exe install openssl:x64-windows-static-md
else
protoc --version
fi
protoc --version
- name: Checkout the repository
uses: actions/checkout@v4
Expand All @@ -67,35 +57,20 @@ jobs:

- name: Build the release binary
shell: bash
# Since our win builds have been OOM-ing recently try to constrain the memory
# consumption by limiting the number of parallel jobs during build.
run: |
export PATH=$PATH:$HOME/d/protoc/bin
if [ "${{ matrix.os }}" = "windows-latest" ]; then
cargo build -j 1 --release
else
cargo build --release
fi
cargo build --release
- name: Test invoking the binaries
shell: bash
run: |
if [ "${{ matrix.os }}" = "windows-latest" ]; then
./target/release/seafowl.exe --version || exit 1
else
./target/release/seafowl --version || exit 1
fi
./target/release/seafowl --version || exit 1
- name: Prepare artifact name
shell: bash
run: |
echo "ARTIFACT=seafowl-nightly-${{ matrix.target }}" >> $GITHUB_ENV
if [ "${{ matrix.os }}" = "windows-latest" ]; then
echo "SOURCE=target/release/seafowl.exe" >> $GITHUB_ENV
else
echo "SOURCE=target/release/seafowl" >> $GITHUB_ENV
fi
echo "SOURCE=target/release/seafowl" >> $GITHUB_ENV
- name: Login to DockerHub (Linux only)
if: matrix.build == 'linux-x86_64'
Expand Down Expand Up @@ -173,13 +148,11 @@ jobs:
chmod +x artifacts/seafowl-nightly-x86_64-unknown-linux-gnu/seafowl artifacts/seafowl-nightly-x86_64-apple-darwin/seafowl
tar -C artifacts/seafowl-nightly-x86_64-unknown-linux-gnu -czf seafowl-${{ env.RELEASE_VERSION }}-x86_64-unknown-linux-gnu.tar.gz seafowl
tar -C artifacts/seafowl-nightly-x86_64-apple-darwin -czf seafowl-${{ env.RELEASE_VERSION }}-x86_64-apple-darwin.tar.gz seafowl
cd artifacts/seafowl-nightly-x86_64-pc-windows-msvc && zip -r ../../seafowl-${{ env.RELEASE_VERSION }}-x86_64-pc-windows-msvc.zip seafowl.exe
- name: Upload release archive
uses: softprops/action-gh-release@v1
with:
files: |
seafowl-${{ env.RELEASE_VERSION }}-x86_64-unknown-linux-gnu.tar.gz
seafowl-${{ env.RELEASE_VERSION }}-x86_64-apple-darwin.tar.gz
seafowl-${{ env.RELEASE_VERSION }}-x86_64-pc-windows-msvc.zip
body_path: notes-${{ env.RELEASE_VERSION }}.md

0 comments on commit b718403

Please sign in to comment.