From 13fd0dab54b83b8d12d5c84d4b7e519e4b7f1cbe Mon Sep 17 00:00:00 2001 From: Adrian Del Grosso <10929341+ad3154@users.noreply.github.com> Date: Fri, 18 Aug 2023 18:58:16 -0600 Subject: [PATCH] Add Workflow Added build actions --- .github/workflows/build.yml | 50 +++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..d585119 --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,50 @@ +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: + 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: + 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: linux-executable + path: | + build/AgIsoDDOPGenerator + build/SDL2.dll