From 9782c90fdc874d338e587cf9ddfd4df2fe3c00fa Mon Sep 17 00:00:00 2001 From: Rasmus Anthin <32767250+razterizer@users.noreply.github.com> Date: Tue, 17 Dec 2024 22:27:36 +0100 Subject: [PATCH] Update build-and-test-ubuntu.yml Adding job that builds the examples. --- .github/workflows/build-and-test-ubuntu.yml | 28 +++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/workflows/build-and-test-ubuntu.yml b/.github/workflows/build-and-test-ubuntu.yml index d0365e4..582b935 100644 --- a/.github/workflows/build-and-test-ubuntu.yml +++ b/.github/workflows/build-and-test-ubuntu.yml @@ -9,6 +9,34 @@ on: - main jobs: + build-examples: + runs-on: ubuntu-latest + + steps: + # Step 1: Checkout the repository + - name: Checkout repository + uses: actions/checkout@v3 + + # Step 2: Move to the parent directory and fetch dependencies + - name: Fetch dependencies + run: | + cd .. + git clone https://github.com/razterizer/Core.git + + # Step 3: Change to the correct directory and build + - name: Build + run: | + cd Examples + ./build_examples.sh + continue-on-error: false # Ensure errors are not bypassed + + # Step 4: Upload the built unit test binaries as artifacts + - name: Upload unit test binaries + uses: actions/upload-artifact@v3 + with: + name: unit-test-artifacts + path: Tests/bin + build-unit-tests: runs-on: ubuntu-latest