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
22on: [push, pull_request]
33jobs:
44 x86_64-linux-debug:
5 outputs:
6 version: ${{ steps.version.outputs.version }}
57 runs-on: [self-hosted, Linux, x86_64]
68 steps:
79 - name: Checkout
810 uses: actions/checkout@v3
911 - name: Build and Test
1012 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
1119 x86_64-linux-release:
1220 runs-on: [self-hosted, Linux, x86_64]
1321 steps:
......@@ -59,6 +67,8 @@ jobs:
5967 - x86_64-windows
6068 - aarch64-linux
6169 - aarch64-macos
70 env:
71 ZIG_VERSION: "${{ needs.x86_64-linux-debug.outputs.version }}"
6272 steps:
6373 - name: Checkout
6474 uses: actions/checkout@v3