Skip to content

Commit

Permalink
Perf & switch to Ubuntu-20.04 with g++-11
Browse files Browse the repository at this point in the history
  • Loading branch information
slhmy committed May 1, 2023
1 parent 97747a2 commit 269136f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/rust_build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build
name: Test

on:
push:
Expand All @@ -10,20 +10,20 @@ env:
CARGO_TERM_COLOR: always

jobs:
build:
runs-on: ubuntu-latest
cargo-test:
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Install dependencies
run: sudo apt-get install -y libseccomp-dev protobuf-compiler
run: sudo apt-get install -y libseccomp-dev protobuf-compiler g++-11
- name: Setup g++-11
run: sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-11 100
- name: Check ENV
run: echo $(rustup --version && gcc -v && g++ -v)
run: echo $(rustup --version && g++ -v)
- name: Build test dist
run: cd test-collection && ./build.sh && cd ..
- name: Build target
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose -- --nocapture

0 comments on commit 269136f

Please sign in to comment.