Add GHA to build/upload test server binary #6
Workflow file for this run
This file contains hidden or 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 datadog-static-analyzer-server test bins | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
test-bin-build: | |
strategy: | |
matrix: | |
include: | |
- target: aarch64-unknown-linux-gnu | |
- os: ubuntu-22.04 | |
- target: x86_64-unknown-linux-gnu | |
- os: ubuntu-22.04 | |
- target: aarch64-unknown-linux-gnu | |
os: ubuntu-20.04 | |
- target: x86_64-unknown-linux-gnu | |
os: ubuntu-20.04 | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@stable | |
- name: Build | |
shell: bash | |
run: | | |
cargo build --release --bin datadog-static-analyzer-server | |
- name: Archive | |
shell: bash | |
run: | | |
mkdir -p artifacts | |
mv target/release/datadog-static-analyzer-server artifacts/ | |
name="bin-${{ matrix.target }}-${{ matrix.os }}.zip" | |
zip -r $name artifacts | |
- name: Upload | |
uses: actions/upload-artifact@v4 | |
with: | |
name: bin-${{ matrix.target }}-${{ matrix.os }} | |
path: bin-${{ matrix.target }}-${{ matrix.os }}.zip |