Skip to content

Commit 0f6a9e8

Browse files
committed
chore: build examples in anotehr runner so things are a bit quicker
1 parent 3d1a10b commit 0f6a9e8

3 files changed

Lines changed: 38 additions & 4 deletions

File tree

.github/workflows/build.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
workflow_dispatch: {}
77

88
jobs:
9+
build-examples:
10+
uses: ./.github/workflows/build_examples.yaml
11+
912
build-linux:
1013
uses: ./.github/workflows/build_linux.yaml
1114

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
name: build-examples
3+
4+
on:
5+
workflow_call: {}
6+
workflow_dispatch: {}
7+
8+
jobs:
9+
build-examples:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: checkout
14+
uses: actions/checkout@v6
15+
with:
16+
fetch-depth: 1
17+
18+
- name: load env vars for workflow run
19+
run: |
20+
source .github/vars.env
21+
echo "ZIG_VERSION=$ZIG_VERSION" >> "$GITHUB_ENV"
22+
23+
- name: setup zig
24+
uses: mlugg/setup-zig@v2
25+
with:
26+
version: ${{ env.ZIG_VERSION }}
27+
28+
- name: ensure openssl generate step cached
29+
run: |
30+
zig build
31+
working-directory: lib/openssl
32+
33+
- name: build the examples
34+
run: |
35+
make build-examples

.github/workflows/build_linux.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,6 @@ jobs:
3030
zig build
3131
working-directory: lib/openssl
3232

33-
- name: build the examples
34-
run: |
35-
make build-examples
36-
3733
- name: build static library
3834
run: |
3935
make release-linux-static TARGET=x86_64-linux-gnu

0 commit comments

Comments
 (0)