Skip to content

Add Workflow

Add Workflow #4

Workflow file for this run

name: Build
on: push
jobs:
windows_build:
name: Windows Build
runs-on: windows-latest
env:
BUILD_TYPE: Release
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
ref: ${{ github.event.pull_request.head.sha }} # Check out the code of the PR head
- name: Compile
run: |
mkdir build
cmake -S . -B build -DBUILD_EXAMPLES=OFF -DBUILD_TESTING=OFF -DCAN_DRIVER=None
cmake --build build
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: windows-executable
path: |
*.dll
*.exe
ubuntu_build:
name: Ubuntu Build
runs-on: ubuntu-latest
env:
BUILD_TYPE: Release
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
ref: ${{ github.event.pull_request.head.sha }} # Check out the code of the PR head
- name: Compile
run: |
mkdir build
sudo apt-get install -y libgl1-mesa-dev
cmake -S . -B build -DBUILD_EXAMPLES=OFF -DBUILD_TESTING=OFF -DCAN_DRIVER=None
cmake --build build
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: linux-executable
path: |
build/AgIsoDDOPGenerator