diff options
| author | Loris Cro <kappaloris@gmail.com> | 2022-11-22 18:17:25 +0100 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-11-22 13:40:31 -0700 |
| commit | 942a1044576a84dd337df575ae5b742366fc104f (patch) | |
| tree | ff12f3d44c387852301cfb6ccd1b1a8bf1900c8d /.github/workflows | |
| parent | 671fb4ac47da3f3a6d791ae8d19ee3a34f362dd1 (diff) | |
| download | zig-942a1044576a84dd337df575ae5b742366fc104f.tar.gz zig-942a1044576a84dd337df575ae5b742366fc104f.zip | |
ci: use test a job to provide ZIG_VERSION to build-tarball job
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/ci.yaml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 0e00d84570..ae5f6c6fb2 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -2,12 +2,20 @@ name: ci on: [push, pull_request] jobs: x86_64-linux-debug: + outputs: + version: ${{ steps.version.outputs.version }} runs-on: [self-hosted, Linux, x86_64] steps: - name: Checkout uses: actions/checkout@v3 - name: Build and Test run: sh ./ci/linux/build-x86_64-debug.sh + # The following step is required by the build-tarballs job. + # If this job is being deleted / commented out, make sure + # to have another job provide this information. + - name: Get Version + id: version + run: echo "version=$(stage3/bin/zig version)" >> $GITHUB_OUTPUT x86_64-linux-release: runs-on: [self-hosted, Linux, x86_64] steps: @@ -59,6 +67,8 @@ jobs: - x86_64-windows - aarch64-linux - aarch64-macos + env: + ZIG_VERSION: "${{ needs.x86_64-linux-debug.outputs.version }}" steps: - name: Checkout uses: actions/checkout@v3 |
