Skip to content

Commit

Permalink
build-ubuntu.yml:
Browse files Browse the repository at this point in the history
* Actually building and running the unit tests now.
  • Loading branch information
razterizer committed Sep 29, 2024
1 parent 5c1aef9 commit 3dfda3c
Showing 1 changed file with 53 additions and 6 deletions.
59 changes: 53 additions & 6 deletions .github/workflows/build-ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,64 @@ jobs:
continue-on-error: false # Ensure errors are not bypassed

build-unit-tests:
needs: build-demos
runs-on: ubuntu-latest

steps:
- name: test
run: ls
# 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
git clone https://github.com/razterizer/TrainOfThought.git
# Step 3: Change to the correct directory and build
- name: Build
run: |
cd Tests
./build_unit_tests.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

run-unit-tests:
needs: build-unit-tests
runs-on: ubuntu-latest

steps:
- name: test
run: ls
# Step 1: Checkout the repository
- name: Checkout repository
uses: actions/checkout@v3

- name: List files
run: |
pwd
ls
# Step 2: Create the bin folder if it doesn't exist
- name: Create bin folder
run: mkdir -p Tests/bin

# Step 3: Download the artifacts from the previous job
- name: Download unit test binaries
uses: actions/download-artifact@v3
with:
name: unit-test-artifacts
path: Tests/bin

# Step 4: Run the unit tests
- name: Run unit tests
run: |
cd Tests
chmod ugo+x bin/unit_tests
./bin/unit_tests
continue-on-error: false # Ensure errors are not bypassed

0 comments on commit 3dfda3c

Please sign in to comment.