Skip to content

Commit dc963f2

Browse files
committed
ci: can't build musl target
1 parent dd22604 commit dc963f2

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

.github/workflows/ci.yml

+7-5
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,14 @@ jobs:
6969
rustc --version
7070
cargo --version
7171
72-
- name: Install musl-tools
73-
if: matrix.target == 'x86_64-unknown-linux-musl'
72+
- name: Install dependencies
73+
shell: bash
7474
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
7880
7981
- name: Build
8082
run: cargo build --release --locked --target ${{ matrix.target }}

.github/workflows/release.yml

+8-7
Original file line numberDiff line numberDiff line change
@@ -76,15 +76,16 @@ jobs:
7676
echo "RELEASE_VERSION=${GITHUB_REF:11}" >> $GITHUB_ENV
7777
echo ${{ env.RELEASE_VERSION }}
7878
79-
- name: Install musl-tools
80-
if: matrix.target == 'x86_64-unknown-linux-musl'
79+
- name: Install dependencies
80+
shell: bash
8181
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
8587
86-
- name: Install Rust
87-
uses: dtolnay/rust-toolchain@stable
88+
- uses: actions-rust-lang/setup-rust-toolchain@v1
8889
with:
8990
target: ${{ matrix.target }}
9091

0 commit comments

Comments
 (0)