Commit dc963f2 1 parent dd22604 commit dc963f2 Copy full SHA for dc963f2
File tree 2 files changed +15
-12
lines changed
2 files changed +15
-12
lines changed Original file line number Diff line number Diff line change @@ -69,12 +69,14 @@ jobs:
69
69
rustc --version
70
70
cargo --version
71
71
72
- - name : Install musl-tools
73
- if : matrix.target == 'x86_64-unknown-linux-musl'
72
+ - name : Install dependencies
73
+ shell : bash
74
74
run : |
75
- sudo apt-get update
76
- sudo apt-get install -y --no-install-recommends \
77
- --allow-unauthenticated musl-tools
75
+ if [[ "${{ matrix.build }}" = *"-musl" ]]; then
76
+ sudo apt-get update
77
+ sudo apt-get install -y --no-install-recommends \
78
+ --allow-unauthenticated musl-tools
79
+ fi
78
80
79
81
- name : Build
80
82
run : cargo build --release --locked --target ${{ matrix.target }}
Original file line number Diff line number Diff line change @@ -76,15 +76,16 @@ jobs:
76
76
echo "RELEASE_VERSION=${GITHUB_REF:11}" >> $GITHUB_ENV
77
77
echo ${{ env.RELEASE_VERSION }}
78
78
79
- - name : Install musl-tools
80
- if : matrix.target == 'x86_64-unknown-linux-musl'
79
+ - name : Install dependencies
80
+ shell : bash
81
81
run : |
82
- sudo apt-get update
83
- sudo apt-get install -y --no-install-recommends \
84
- --allow-unauthenticated musl-tools
82
+ if [[ "${{ matrix.build }}" = *"-musl" ]]; then
83
+ sudo apt-get update
84
+ sudo apt-get install -y --no-install-recommends \
85
+ --allow-unauthenticated musl-tools
86
+ fi
85
87
86
- - name : Install Rust
87
- uses : dtolnay/rust-toolchain@stable
88
+ - uses : actions-rust-lang/setup-rust-toolchain@v1
88
89
with :
89
90
target : ${{ matrix.target }}
90
91
You can’t perform that action at this time.
0 commit comments