Skip to content

Commit ef42471

Browse files
ci: Reorder jobs to conserve disk space
1 parent 186230d commit ef42471

1 file changed

Lines changed: 22 additions & 20 deletions

File tree

.github/workflows/ci.yml

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,28 @@ on:
1717
- '*'
1818

1919
jobs:
20+
ghidra-script-tests:
21+
strategy:
22+
matrix:
23+
image-version: [22.04]
24+
runs-on: ubuntu-${{ matrix.image-version }}
25+
timeout-minutes: 30
26+
env:
27+
CI: true
28+
steps:
29+
- name: Clone the Patchestry repository
30+
uses: actions/checkout@v4
31+
with:
32+
submodules: true
33+
fetch-depth: 1
34+
35+
- name: Build the Ghidra testing Docker image and run tests via Gradle
36+
run: |
37+
DOCKER_BUILDKIT=1 docker build -t trailofbits/decompile-test:latest -f test/decompile-test.dockerfile . && \
38+
docker run trailofbits/decompile-test
39+
2040
llvm-build-and-test:
41+
needs: ghidra-script-tests
2142
strategy:
2243
matrix:
2344
llvm-version: [20]
@@ -73,23 +94,4 @@ jobs:
7394
- name: Test ${{ matrix.build-type }} with sanitizers set ${{ matrix.sanitizers }}
7495
run: |
7596
lit ./builds/ci/test -D BUILD_TYPE=${{ matrix.build-type }} -v -DCI_OUTPUT_FOLDER=${{ github.workspace }}/builds/ci/test/ghidra/Output
76-
77-
ghidra-script-tests:
78-
strategy:
79-
matrix:
80-
image-version: [22.04]
81-
runs-on: ubuntu-${{ matrix.image-version }}
82-
timeout-minutes: 30
83-
env:
84-
CI: true
85-
steps:
86-
- name: Clone the Patchestry repository
87-
uses: actions/checkout@v4
88-
with:
89-
submodules: true
90-
fetch-depth: 1
91-
92-
- name: Build the Ghidra testing Docker image and run tests via Gradle
93-
run: |
94-
DOCKER_BUILDKIT=1 docker build -t trailofbits/decompile-test:latest -f test/decompile-test.dockerfile . && \
95-
docker run trailofbits/decompile-test
97+

0 commit comments

Comments
 (0)