2023-05-03 17:49:27 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
workflow_dispatch:
|
2023-05-01 16:07:03 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build_ubuntu:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: gitconfig
|
|
|
|
run: |
|
|
|
|
git config --global core.autocrlf input
|
|
|
|
|
|
|
|
- name: checkout
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
|
|
|
|
- name: Install Rust
|
|
|
|
uses: actions-rs/toolchain@v1
|
|
|
|
with:
|
|
|
|
toolchain: stable
|
|
|
|
target: x86_64-unknown-linux-gnu
|
|
|
|
override: true
|
|
|
|
components: rustfmt, clippy
|
|
|
|
|
|
|
|
- name: Set up cargo cache
|
2023-05-01 23:30:22 +00:00
|
|
|
uses: Swatinem/rust-cache@v2
|
2023-05-01 16:07:03 +00:00
|
|
|
continue-on-error: false
|
|
|
|
with:
|
2023-05-01 23:30:22 +00:00
|
|
|
key: ${{ runner.os }}-cargo-${{ hashFiles('zeroidc//Cargo.lock') }}
|
|
|
|
shared-key: ${{ runner.os }}-cargo-
|
|
|
|
workspaces: |
|
|
|
|
zeroidc/
|
2023-05-01 16:07:03 +00:00
|
|
|
|
|
|
|
- name: validate-1m-linux
|
|
|
|
env:
|
|
|
|
CC: 'gcc'
|
|
|
|
CXX: 'g++'
|
|
|
|
BRANCH: ${{ github.ref_name }}
|
|
|
|
run: |
|
2023-05-03 17:49:27 +00:00
|
|
|
sudo apt install -y valgrind xmlstarlet gcovr iperf3 tree
|
2023-05-01 16:07:03 +00:00
|
|
|
make one ZT_COVERAGE=1 ZT_TRACE=1
|
|
|
|
sudo chmod +x ./.github/workflows/validate-1m-linux.sh
|
|
|
|
sudo ./.github/workflows/validate-1m-linux.sh
|
|
|
|
|
|
|
|
- name: Archive test results
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: ${{github.sha}}-test-results
|
|
|
|
path: "*test-results*"
|
|
|
|
|
|
|
|
- name: final-report
|
|
|
|
run: |
|
|
|
|
sudo chmod +x ./.github/workflows/report.sh
|
|
|
|
sudo ./.github/workflows/report.sh
|
2023-05-01 23:30:22 +00:00
|
|
|
|