Skip to content

Commit

Permalink
Update build-and-test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
neri14 authored Aug 3, 2024
1 parent 4795200 commit ead787a
Showing 1 changed file with 2 additions and 35 deletions.
37 changes: 2 additions & 35 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
branches: [ "master" ]

jobs:
build-binary:
build-and-test:
runs-on: ubuntu-latest

steps:
Expand All @@ -29,42 +29,9 @@ jobs:
- name: Build binary
run: cmake --build ${{github.workspace}}/build --target vgraph

build-tests:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive

- name: Print env
run: |
echo github.event.action: ${{ github.event.action }}
echo github.event_name: ${{ github.event_name }}
cmake --version
gcc --version
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build

- name: Build unit tests
run: cmake --build ${{github.workspace}}/build --target vgraph_test

- name: Upload unit test binary
uses: actions/upload-artifact@v4
with:
name: vgraph_test
path: ${{github.workspace}}/build/vgraph_test

test:
runs-on: ubuntu-latest
needs: build-tests
steps:
- name: Download unit test binary
uses: actions/download-artifact@v4
with:
name: vgraph_test
path: ${{github.workspace}}
- name: Run unit tests
working-directory: ${{github.workspace}}/build
run: ./vgraph_test

0 comments on commit ead787a

Please sign in to comment.