Skip to content

Commit 6969a77

Browse files
committed
Add separate pipeline for Ubuntu 22.04
1 parent 371d21c commit 6969a77

File tree

2 files changed

+43
-2
lines changed

2 files changed

+43
-2
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: amd64-ubuntu2204
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
jobs:
12+
ubuntu-latest:
13+
14+
# Atheris fails to install on Ubuntu 24.04, thus, this pipeline can test Atheris on 22.04
15+
runs-on: ubuntu-22.04
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
- name: Build
20+
run: cargo build --all-features --verbose
21+
- name: Run tests
22+
run: |
23+
sudo apt update && sudo apt install -y gdb pip curl python3-dev llvm \
24+
openjdk-17-jdk ca-certificates gnupg
25+
pip3 install atheris
26+
sudo mkdir -p /etc/apt/keyrings
27+
curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
28+
export NODE_MAJOR=20
29+
echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.list
30+
sudo apt update && sudo apt install -y nodejs
31+
sudo npm install -g jsfuzz
32+
sudo npm install --save-dev @jazzer.js/core
33+
wget -q https://packages.microsoft.com/config/ubuntu/22.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
34+
dpkg -i packages-microsoft-prod.deb && rm packages-microsoft-prod.deb
35+
sudo apt update && sudo apt install -y --no-install-recommends dotnet-sdk-8.0
36+
curl https://sh.rustup.rs -o rustup.sh && chmod +x rustup.sh && \
37+
./rustup.sh -y && rm rustup.sh
38+
rustup install nightly
39+
export PATH=/root/.cargo/bin:$PATH
40+
cargo install cargo-fuzz
41+
cargo test --release --verbose --lib -- --test-threads 1
42+
cargo test --release --verbose --package casr

.github/workflows/coverage.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ env:
1111
jobs:
1212
ubuntu-latest:
1313

14-
# Atheris fails to install on Ubuntu 24.04, see https://github.com/google/atheris/issues/82
15-
runs-on: ubuntu-22.04
14+
runs-on: latest
1615

1716
steps:
1817
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)