Create main.yml

This commit is contained in:
cmclark00 2024-08-13 22:01:41 -04:00 committed by GitHub
parent 26260bc11c
commit 75e8a2a1fd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

24
.github/workflows/main.yml vendored Normal file
View file

@ -0,0 +1,24 @@
name: Build on Linux
runs-on: ubuntu-latest
strategy:
matrix:
arch: [x64, arm64]
steps:
- uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Install Dependencies
run: sudo apt-get install -y cmake make gcc g++ libssl-dev
- name: Build
run: |
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=g++ -DCMAKE_C_COMPILER=gcc
make
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: linux-${{ matrix.arch }}-binaries
path: build/*