UID2-2349 Add build pipeline for aws vsock proxy #1
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: Build/Test/Package | ||
on: [push] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
container: amazonlinux:2 | ||
strategy: | ||
matrix: | ||
build_type: [debug, relwithdebinfo] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Dev environment | ||
run: | | ||
yum groupinstall -y "Development Tools" | ||
yum install -y cmake3 valgrind | ||
- name: Build and Test | ||
run: | | ||
cmake3 -S . -B build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} | ||
cd build | ||
make test | ||
make package | ||
- uses: actions/upload-artifact@v3 | ||
if: max.build_type == 'release' | ||
Check failure on line 28 in .github/workflows/build.yml GitHub Actions / Build/Test/PackageInvalid workflow file
|
||
with: | ||
name: vsock-bridge.tar.gz | ||
path: build/*.tar.gz |