Remove unneeded GitLab jobs #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generate static-analysis-kernel test bins | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
test-bin-build: | |
strategy: | |
matrix: | |
include: | |
- target: aarch64-unknown-linux-gnu | |
os: ubuntu-latest | |
- target: x86_64-unknown-linux-gnu | |
os: ubuntu-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- name: Build | |
shell: bash | |
run: | | |
mkdir -p artifacts | |
output=$(cargo test --no-run 2>&1) | |
echo "$output" | tee cargo_stdout.log | |
mv cargo_stdout.log artifacts/ | |
echo "$output" | grep -oP 'target/debug/deps/static-analysis-kernel-[^\s]+' | while read -r line ; do | |
mv "$line" artifacts/ | |
done | |
- name: Archive | |
shell: bash | |
run: | | |
name="bin-${{ matrix.target }}.zip" | |
zip -r $name artifacts | |
- name: Upload | |
uses: actions/upload-artifact@v4 | |
with: | |
name: bin-${{ matrix.target }} | |
path: bin-${{ matrix.target }}.zip |