Skip to content

Commit

Permalink
CI: seperate apt update and install
Browse files Browse the repository at this point in the history
To counter

```
E: Failed to fetch https://packages.microsoft.com/ubuntu/22.04/prod/dists/jammy/InRelease Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)

```

the CI is changed to try to update and ignore issues and afterwards
install instead of chaining it with `&&` to only install when update
succeeds.
  • Loading branch information
nichtsfrei committed Apr 24, 2024
1 parent b82a978 commit f866046
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/linting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ jobs:
working-directory: rust
steps:
- uses: actions/checkout@v4
- run: sudo apt update && sudo apt-get install -y libpcap-dev
- run: sudo apt update || true
- run: sudo apt-get install -y libpcap-dev
- run: rustup update stable && rustup default stable || rustup default stable
- run: cargo install cargo-audit
- run: cargo install typos-cli
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ jobs:
working-directory: rust
steps:
- uses: actions/checkout@v4
- run: sudo apt update && sudo apt-get install -y libpcap-dev
- run: sudo apt update || true
- run: sudo apt-get install -y libpcap-dev
- run: rustup update stable && rustup default stable || rustup default stable
- name: unit-tests
run: cargo test --lib --tests --workspace

0 comments on commit f866046

Please sign in to comment.