Skip to content

Commit fb5c0ef

Browse files
Freeze dependencies used in CI (#1338)
1 parent 22a8850 commit fb5c0ef

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

.github/workflows/test.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ jobs:
142142
- name: Install developer package dependencies
143143
run: sudo apt-get update && sudo apt install -y libunwind-dev && sudo apt-get install libpulse-dev portaudio19-dev libasound2-dev libsdl2-dev gstreamer1.0-dev libgstreamer-plugins-base1.0-dev libavahi-compat-libdnssd-dev
144144

145-
- run: cargo build --workspace --examples
145+
- run: cargo fetch --locked
146+
- run: cargo build --frozen --workspace --examples
146147
- run: cargo test --workspace
147148

148149
- run: cargo install cargo-hack
@@ -191,7 +192,8 @@ jobs:
191192
target
192193
key: ${{ runner.os }}-${{ steps.get-rustc-version.outputs.version }}-${{ hashFiles('Cargo.lock') }}
193194

194-
- run: cargo build --workspace --examples
195+
- run: cargo fetch --locked
196+
- run: cargo build --frozen --workspace --examples
195197
- run: cargo test --workspace
196198

197199
- run: cargo install cargo-hack
@@ -268,8 +270,10 @@ jobs:
268270
echo "CARGO_TARGET_${target}_LINKER=riscv64-linux-gnu-gcc" >> $GITHUB_ENV
269271
fi
270272
273+
- name: Fetch
274+
run: cargo fetch --locked
271275
- name: Build
272-
run: cargo build --verbose --target ${{ matrix.target }} --no-default-features
276+
run: cargo build --frozen --verbose --target ${{ matrix.target }} --no-default-features
273277

274278
- name: Check binary
275279
run: file target/${{ matrix.target }}/debug/librespot

0 commit comments

Comments
 (0)