Skip to content

Commit

Permalink
Add Workflow
Browse files Browse the repository at this point in the history
Added build actions
  • Loading branch information
ad3154 committed Aug 19, 2023
1 parent 7602e4d commit 379db67
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
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: |
build/SDL2.dll
build/AgIsoDDOPGenerator.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
build/SDL2.dll

0 comments on commit 379db67

Please sign in to comment.