authorgravatar for kappaloris@gmail.comLoris Cro <kappaloris@gmail.com> 2022-11-22 18:17:25+01:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2022-11-22 13:40:31-07:00
log942a1044576a84dd337df575ae5b742366fc104f
treeff12f3d44c387852301cfb6ccd1b1a8bf1900c8d
parent671fb4ac47da3f3a6d791ae8d19ee3a34f362dd1

ci: use test a job to provide ZIG_VERSION to build-tarball job


1 files changed, 10 insertions(+), 0 deletions(-)

.github/workflows/ci.yaml+10
...@@ -2,12 +2,20 @@ name: ci...@@ -2,12 +2,20 @@ name: ci
2on: [push, pull_request]2on: [push, pull_request]
3jobs:3jobs:
4 x86_64-linux-debug:4 x86_64-linux-debug:
5 outputs:
6 version: ${{ steps.version.outputs.version }}
5 runs-on: [self-hosted, Linux, x86_64]7 runs-on: [self-hosted, Linux, x86_64]
6 steps:8 steps:
7 - name: Checkout9 - name: Checkout
8 uses: actions/checkout@v310 uses: actions/checkout@v3
9 - name: Build and Test11 - name: Build and Test
10 run: sh ./ci/linux/build-x86_64-debug.sh12 run: sh ./ci/linux/build-x86_64-debug.sh
13 # The following step is required by the build-tarballs job.
14 # If this job is being deleted / commented out, make sure
15 # to have another job provide this information.
16 - name: Get Version
17 id: version
18 run: echo "version=$(stage3/bin/zig version)" >> $GITHUB_OUTPUT
11 x86_64-linux-release:19 x86_64-linux-release:
12 runs-on: [self-hosted, Linux, x86_64]20 runs-on: [self-hosted, Linux, x86_64]
13 steps:21 steps:
...@@ -59,6 +67,8 @@ jobs:...@@ -59,6 +67,8 @@ jobs:
59 - x86_64-windows67 - x86_64-windows
60 - aarch64-linux68 - aarch64-linux
61 - aarch64-macos69 - aarch64-macos
70 env:
71 ZIG_VERSION: "${{ needs.x86_64-linux-debug.outputs.version }}"
62 steps:72 steps:
63 - name: Checkout73 - name: Checkout
64 uses: actions/checkout@v3 74 uses: actions/checkout@v3