File tree Expand file tree Collapse file tree 1 file changed +19
-7
lines changed
Expand file tree Collapse file tree 1 file changed +19
-7
lines changed Original file line number Diff line number Diff line change 88jobs :
99 build :
1010 strategy :
11+ fail-fast : false
1112 matrix :
1213 include :
1314 - target : x86_64-unknown-linux-gnu
1617 - target : aarch64-unknown-linux-gnu
1718 os : ubuntu-latest
1819 artifact : warp-linux-arm64
20+ use_cross : true
1921 - target : x86_64-apple-darwin
2022 os : macos-latest
2123 artifact : warp-darwin-x64
@@ -29,16 +31,26 @@ jobs:
2931 - uses : dtolnay/rust-toolchain@stable
3032 with :
3133 targets : ${{ matrix.target }}
32- - name : Install cross-compilation tools
33- if : matrix.target == 'aarch64-unknown-linux-gnu'
34- run : |
35- sudo apt-get update
36- sudo apt-get install -y gcc-aarch64-linux-gnu
37- echo "CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc" >> $GITHUB_ENV
38- - name : Build
34+
35+ - name : Install OpenSSL (Linux x64)
36+ if : matrix.os == 'ubuntu-latest' && !matrix.use_cross
37+ run : sudo apt-get update && sudo apt-get install -y pkg-config libssl-dev
38+
39+ - name : Install cross (Linux ARM64)
40+ if : matrix.use_cross
41+ run : cargo install cross --git https://github.com/cross-rs/cross
42+
43+ - name : Build (native)
44+ if : " !matrix.use_cross"
3945 run : cargo build --release --package warp-cli --target ${{ matrix.target }}
46+
47+ - name : Build (cross)
48+ if : matrix.use_cross
49+ run : cross build --release --package warp-cli --target ${{ matrix.target }}
50+
4051 - name : Rename binary
4152 run : cp target/${{ matrix.target }}/release/warp ${{ matrix.artifact }}
53+
4254 - uses : actions/upload-artifact@v4
4355 with :
4456 name : ${{ matrix.artifact }}
You can’t perform that action at this time.
0 commit comments