From 50b2c9d705b68a003db980346e0f1b1108d1d6be Mon Sep 17 00:00:00 2001 From: Stephen Gutekanst Date: Fri, 4 Mar 2022 21:40:43 -0700 Subject: [PATCH] gpu-dawn: CI: begin producing binaries for x86_64-windows Helps hexops/mach#86 Signed-off-by: Stephen Gutekanst --- gpu-dawn/.github/workflows/ci.yml | 70 ++++++++++++++++++++++--------- 1 file changed, 50 insertions(+), 20 deletions(-) diff --git a/gpu-dawn/.github/workflows/ci.yml b/gpu-dawn/.github/workflows/ci.yml index c6155b2c..ad00223a 100644 --- a/gpu-dawn/.github/workflows/ci.yml +++ b/gpu-dawn/.github/workflows/ci.yml @@ -89,26 +89,56 @@ jobs: env: RELEASE_NAME: x86_64-linux-musl_release-fast GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # TODO(build-system): enable windows CI here once gpu-dawn builds under Windows - # x86_64-windows: - # runs-on: windows-latest - # # We want to run on external PRs, but not on our own internal PRs as they'll be run by the push - # # to the branch. - # if: github.event.workflow_run.conclusion == 'success' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository) - # steps: - # - name: Checkout - # uses: actions/checkout@v2 - # - name: Install Git - # run: choco install git - # - name: Setup Zig - # run: | - # Invoke-WebRequest -Uri "https://ziglang.org/builds/zig-windows-x86_64-0.10.0-dev.670+e1a535360.zip" -OutFile "C:\zig.zip" - # cd C:\ - # 7z x zig.zip - # Add-Content $env:GITHUB_PATH "C:\zig-windows-x86_64-0.10.0-dev.670+e1a535360\" - # - name: install (debug) - # run: zig build install -Ddawn-from-source=true -Dtarget=x86_64-windows - # # TODO: upload step for Windows + x86_64-windows-gnu_debug: + runs-on: windows-latest + # We want to run on external PRs, but not on our own internal PRs as they'll be run by the push + # to the branch. + if: github.event.workflow_run.conclusion == 'success' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository) + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Install Git + run: choco install git + - name: Setup Zig + run: | + Invoke-WebRequest -Uri "https://ziglang.org/builds/zig-windows-x86_64-0.10.0-dev.670+e1a535360.zip" -OutFile "C:\zig.zip" + cd C:\ + 7z x zig.zip + Add-Content $env:GITHUB_PATH "C:\zig-windows-x86_64-0.10.0-dev.670+e1a535360\" + - name: install (debug) + run: zig build install -Ddawn-from-source=true -Dtarget=x86_64-windows-gnu + - name: upload (debug) + run: ./dev/upload-release.sh + shell: bash + env: + WINDOWS: true + RELEASE_NAME: x86_64-windows-gnu_debug + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + x86_64-windows-gnu_release-fast: + runs-on: windows-latest + # We want to run on external PRs, but not on our own internal PRs as they'll be run by the push + # to the branch. + if: github.event.workflow_run.conclusion == 'success' && (github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository) + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Install Git + run: choco install git + - name: Setup Zig + run: | + Invoke-WebRequest -Uri "https://ziglang.org/builds/zig-windows-x86_64-0.10.0-dev.670+e1a535360.zip" -OutFile "C:\zig.zip" + cd C:\ + 7z x zig.zip + Add-Content $env:GITHUB_PATH "C:\zig-windows-x86_64-0.10.0-dev.670+e1a535360\" + - name: install (release-fast) + run: zig build install -Ddawn-from-source=true -Dtarget=x86_64-windows-gnu -Drelease-fast=true + - name: upload (release-fast) + run: ./dev/upload-release.sh + shell: bash + env: + WINDOWS: true + RELEASE_NAME: x86_64-windows-gnu_release-fast + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} x86_64-macos_debug: runs-on: macos-latest # We want to run on external PRs, but not on our own internal PRs as they'll be run by the push