Skip to content

Commit d5736de

Browse files
committed
use linux runners to build the linux binaries
1 parent 0b32415 commit d5736de

2 files changed

Lines changed: 19 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ jobs:
1717
build-windows:
1818
name: Build (Windows)
1919
runs-on: windows-latest
20+
needs: build-linux
2021

2122
permissions:
2223
contents: write
@@ -27,6 +28,14 @@ jobs:
2728
uses: actions/setup-dotnet@v4
2829
with:
2930
dotnet-version: 10.0.x
31+
- uses: actions/download-artifact@v5
32+
with:
33+
name: sqelf-x86_64-unknown-linux-gnu
34+
path: ./target/x86_64-unknown-linux-gnu/release/sqelf
35+
- uses: actions/download-artifact@v5
36+
with:
37+
name: sqelf-aarch64-unknown-linux-gnu
38+
path: ./target/aarch64-unknown-linux-gnu/release/sqelf
3039
- name: Build and Publish
3140
env:
3241
DOTNET_CLI_TELEMETRY_OPTOUT: true
@@ -61,3 +70,11 @@ jobs:
6170
shell: pwsh
6271
run: |
6372
./ci/linux-x64/build.ps1
73+
- uses: actions/upload-artifact@v4
74+
with:
75+
name: sqelf-x86_64-unknown-linux-gnu
76+
path: ./target/x86_64-unknown-linux-gnu/release/sqelf
77+
- uses: actions/upload-artifact@v4
78+
with:
79+
name: sqelf-aarch64-unknown-linux-gnu
80+
path: ./target/aarch64-unknown-linux-gnu/release/sqelf

ci/win-x64/build.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ $version = Get-SemVer
2121
Initialize-Filesystem
2222
Invoke-WindowsBuild
2323
Invoke-WindowsTests
24-
Invoke-LinuxBuild
24+
# NOTE: We're relying on GitHub Actions to copy the linux binary across here instead of building locally
25+
# Invoke-LinuxBuild
2526
Invoke-NuGetPack (Get-SemVer $shortver)
2627

2728
Pop-Location

0 commit comments

Comments
 (0)