Skip to content

Commit d5c9a9e

Browse files
committed
ci: combine build and test in one job
1 parent 7db5bad commit d5c9a9e

File tree

1 file changed

+2
-19
lines changed

1 file changed

+2
-19
lines changed

.github/workflows/test.yml

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,14 @@ env:
1919
jobs:
2020
build:
2121
name: Build
22-
runs-on: ubuntu-24.04
22+
runs-on: self-hosted
2323
steps:
2424
- uses: actions/checkout@v4
2525
with:
2626
submodules: true
2727
fetch-depth: 0
2828

29-
- uses: seanmiddleditch/gha-setup-ninja@master
29+
# - uses: seanmiddleditch/gha-setup-ninja@master
3030

3131
- name: Configure CMake
3232
run: cmake . -G Ninja -B ${{ env.build_dir }} -DCMAKE_BUILD_TYPE=${{ env.config }}
@@ -43,29 +43,12 @@ jobs:
4343
name: linux-${{env.artifact}}
4444
path: ${{env.build_dir}}/libspla_x64.so
4545

46-
- name: Archive repository
47-
run: tar -cvzf repository.tar.gz deps/ docs/ examples/ ide/ include/ python/ src/ tests/ ${{ env.build_dir }}/ *.py *.txt
48-
49-
- name: Upload library
50-
uses: actions/upload-artifact@v4
51-
with:
52-
name: repository
53-
path: repository.tar.gz
54-
5546
deploy:
5647
name: Run tests
5748
needs: build
5849
runs-on: self-hosted
5950
# if: ${{ github.event.workflow_run.conclusion == 'success' }}
6051

6152
steps:
62-
- name: Download repository
63-
uses: actions/download-artifact@v4
64-
with:
65-
name: repository
66-
67-
- name: Unarchive reposiotry
68-
run: tar -xzvf repository.tar.gz
69-
7053
- name: Run tests
7154
run: python3 ./run_tests.py --build-dir=${{ env.build_dir }}

0 commit comments

Comments
 (0)