Skip to content

Commit

Permalink
Add GHA to build/upload test server binary
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonforal committed Sep 25, 2024
1 parent f85ed67 commit 69460af
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/test-bin.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
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

0 comments on commit 69460af

Please sign in to comment.