| ... | @@ -2,12 +2,20 @@ name: ci | ... | @@ -2,12 +2,20 @@ name: ci |
| 2 | on: [push, pull_request] | 2 | on: [push, pull_request] |
| 3 | jobs: | 3 | jobs: |
| 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: Checkout | 9 | - name: Checkout |
| 8 | uses: actions/checkout@v3 | 10 | uses: actions/checkout@v3 |
| 9 | - name: Build and Test | 11 | - name: Build and Test |
| 10 | run: sh ./ci/linux/build-x86_64-debug.sh | 12 | 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-windows | 67 | - x86_64-windows |
| 60 | - aarch64-linux | 68 | - aarch64-linux |
| 61 | - aarch64-macos | 69 | - aarch64-macos |
| | 70 | env: |
| | 71 | ZIG_VERSION: "${{ needs.x86_64-linux-debug.outputs.version }}" |
| 62 | steps: | 72 | steps: |
| 63 | - name: Checkout | 73 | - name: Checkout |
| 64 | uses: actions/checkout@v3 | 74 | uses: actions/checkout@v3 |