Install packages #9
Workflow file for this run
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 datadog-static-analyzer-server test bins | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
test-bin-build: | |
strategy: | |
matrix: | |
include: | |
- target: x86_64-unknown-linux-gnu | |
os: [ubuntu-latest] | |
runs-on: ${{ matrix.os }} | |
container: ubuntu:20.04 | |
steps: | |
- name: Config env | |
run: | | |
apt-get update | |
apt-get --no-install-recommends install -y build-essential ca-certificates curl git zip | |
- 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 |