CI: Makes sure to update APT cache before installing packages

pull/523/head
Tpt 2 years ago committed by Thomas Tanon
parent 57d39cad24
commit f72a9600ae
  1. 2
      .github/workflows/artifacts.yml
  2. 21
      .github/workflows/tests.yml

@ -21,7 +21,7 @@ jobs:
submodules: true submodules: true
- run: rustup update && rustup target add aarch64-unknown-linux-gnu - run: rustup update && rustup target add aarch64-unknown-linux-gnu
- run: | - run: |
sudo apt install -y g++-aarch64-linux-gnu sudo apt update && sudo apt install -y g++-aarch64-linux-gnu
echo -e "\n\n[target.aarch64-unknown-linux-gnu]\nlinker = \"aarch64-linux-gnu-gcc\"" >> .cargo/config.toml echo -e "\n\n[target.aarch64-unknown-linux-gnu]\nlinker = \"aarch64-linux-gnu-gcc\"" >> .cargo/config.toml
- uses: Swatinem/rust-cache@v2 - uses: Swatinem/rust-cache@v2
- run: cargo build --release - run: cargo build --release

@ -347,29 +347,18 @@ jobs:
minimize-crashes: true minimize-crashes: true
parallel-fuzzing: true parallel-fuzzing: true
storage-repo: https://${{ secrets.FULL_ACCESS_TOKEN }}@github.com/oxigraph/clusterfuzzlite-oxigraph.git storage-repo: https://${{ secrets.FULL_ACCESS_TOKEN }}@github.com/oxigraph/clusterfuzzlite-oxigraph.git
continue-on-error: true
fuzz_prune:
if: github.event_name != 'pull_request'
needs: fuzz_repo
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: google/clusterfuzzlite/actions/build_fuzzers@v1
with:
language: rust
github-token: ${{ secrets.GITHUB_TOKEN }}
- uses: google/clusterfuzzlite/actions/run_fuzzers@v1 - uses: google/clusterfuzzlite/actions/run_fuzzers@v1
with: with:
github-token: ${{ secrets.GITHUB_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}
fuzz-seconds: 14400 fuzz-seconds: 3600
mode: prune mode: prune
storage-repo: https://${{ secrets.FULL_ACCESS_TOKEN }}@github.com/oxigraph/clusterfuzzlite-oxigraph.git storage-repo: https://${{ secrets.FULL_ACCESS_TOKEN }}@github.com/oxigraph/clusterfuzzlite-oxigraph.git
continue-on-error: true
fuzz_coverage: fuzz_coverage:
if: github.event_name != 'pull_request' if: github.event_name != 'pull_request'
needs: fuzz_prune needs: fuzz_repo
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: google/clusterfuzzlite/actions/build_fuzzers@v1 - uses: google/clusterfuzzlite/actions/build_fuzzers@v1
@ -379,7 +368,7 @@ jobs:
- uses: google/clusterfuzzlite/actions/run_fuzzers@v1 - uses: google/clusterfuzzlite/actions/run_fuzzers@v1
with: with:
github-token: ${{ secrets.GITHUB_TOKEN }} github-token: ${{ secrets.GITHUB_TOKEN }}
fuzz-seconds: 600 fuzz-seconds: 3600
mode: coverage mode: coverage
sanitizer: coverage sanitizer: coverage
storage-repo: https://${{ secrets.FULL_ACCESS_TOKEN }}@github.com/oxigraph/clusterfuzzlite-oxigraph.git storage-repo: https://${{ secrets.FULL_ACCESS_TOKEN }}@github.com/oxigraph/clusterfuzzlite-oxigraph.git

Loading…
Cancel
Save