Skip to content
This repository was archived by the owner on Sep 13, 2023. It is now read-only.

Commit e3022fc

Browse files
feat: add linux-gnu release for use in sdk (#19)
upload release tarball for x86_64-unknown-linux-gnu (suitable for dfx)
1 parent eb28e7c commit e3022fc

File tree

1 file changed

+22
-7
lines changed

1 file changed

+22
-7
lines changed

.github/workflows/release.yml

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,20 @@ jobs:
1212
fail-fast: false
1313
matrix:
1414
rust: [ '1.55.0' ]
15-
os: [ ubuntu-latest, macos-latest ]
15+
target: [ x86_64-apple-darwin, x86_64-unknown-linux-musl, x86_64-unknown-linux-gnu ]
1616
include:
1717
- os: macos-latest
18+
target: x86_64-apple-darwin
1819
binary_path: target/release
1920
name: macos
2021
- os: ubuntu-latest
22+
target: x86_64-unknown-linux-musl
2123
binary_path: target/x86_64-unknown-linux-musl/release
2224
name: linux
23-
25+
- os: ubuntu-latest
26+
target: x86_64-unknown-linux-gnu
27+
binary_path: target/x86_64-unknown-linux-gnu/release
28+
name: linux-gnu
2429
steps:
2530
- uses: actions/checkout@v2
2631

@@ -38,20 +43,29 @@ jobs:
3843
override: true
3944
if: contains(matrix.os, 'macos')
4045

41-
- name: Linux hack
46+
- name: Linux hack (musl only)
4247
run: |
4348
echo "1.58.1" >./rust-toolchain
44-
if: contains(matrix.os, 'ubuntu')
49+
if: contains(matrix.target, 'linux-musl')
4550

46-
- name: Linux build
51+
- name: Linux build (musl)
4752
uses: dfinity/rust-musl-action@master
4853
with:
4954
args: |
5055
cargo install cargo-deb --target x86_64-unknown-linux-musl
5156
echo "1.55.0" >./rust-toolchain
5257
rustup target add x86_64-unknown-linux-musl
5358
RUSTFLAGS="--remap-path-prefix=${GITHUB_WORKSPACE}=/builds/dfinity" cargo deb --target x86_64-unknown-linux-musl -- --locked
54-
if: contains(matrix.os, 'ubuntu')
59+
if: contains(matrix.target, 'linux-musl')
60+
61+
- name: Linux build (gnu)
62+
env:
63+
RUSTFLAGS: --remap-path-prefix=${GITHUB_WORKSPACE}=/builds/dfinity
64+
run: |
65+
cargo build --locked --release --target x86_64-unknown-linux-gnu
66+
cd ${{ matrix.binary_path }}
67+
ldd icx-proxy
68+
if: contains(matrix.target, 'linux-gnu')
5569

5670
- name: macOS build
5771
env:
@@ -80,4 +94,5 @@ jobs:
8094
file: target/x86_64-unknown-linux-musl/debian/icx-proxy_${{ env.ICX_VERSION }}_amd64.deb
8195
asset_name: icx-proxy.deb
8296
tag: ${{ env.SHA_SHORT }}
83-
if: contains(matrix.os, 'ubuntu')
97+
if: contains(matrix.target, 'linux-musl')
98+

0 commit comments

Comments
 (0)