Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,23 +20,23 @@ jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7

- name: Download the compiler (llvm-mingw 20261006)
- name: Download the compiler (llvm-mingw)
shell: pwsh
run: |
# pinned version and checksum, so the build always uses exactly this compiler
$files = @(
@{ url = 'https://github.com/mstorsjo/llvm-mingw/releases/download/20261006/llvm-mingw-20261006-ucrt-x86_64.zip'
sha = '317492c456aa27ee607a5919f1d2d38dcdc1112516a24d0bf4b00d078f52d17a'; out = 'llvm.zip' }
@{ url = 'https://github.com/mstorsjo/llvm-mingw/releases/download/20261104/llvm-mingw-20261104-ucrt-x86_64.zip'
sha = '552191b5754c49a5a20723276a6fc56541ea1922c4c50b7b669022333fc1b40f'; out = 'llvm.zip' }
)
foreach ($f in $files) {
Invoke-WebRequest $f.url -OutFile $f.out
$got = (Get-FileHash $f.out -Algorithm SHA256).Hash.ToLower()
if ($got -ne $f.sha) { throw "$($f.out): checksum $got does not match $($f.sha)" }
}
Expand-Archive llvm.zip "$env:RUNNER_TEMP\llvm"
Add-Content $env:GITHUB_PATH "$env:RUNNER_TEMP\llvm\llvm-mingw-20261006-ucrt-x86_64\bin"
Add-Content $env:GITHUB_PATH "$env:RUNNER_TEMP\llvm\llvm-mingw-20261104-ucrt-x86_64\bin"

- name: Build
shell: cmd
Expand All @@ -49,7 +49,7 @@ jobs:
"SHA-256 of dinput8.dll: $h"
"### dinput8.dll`nSHA-256: ``$h``" | Out-File $env:GITHUB_STEP_SUMMARY -Append

- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v7
with:
name: dinput8
path: build/dinput8.dll
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/nexus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,23 @@ jobs:
nexus:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v7

- name: Download the compiler (llvm-mingw 20261006)
- name: Download the compiler (llvm-mingw)
shell: pwsh
run: |
# pinned version and checksum, the same as build.yml
$files = @(
@{ url = 'https://github.com/mstorsjo/llvm-mingw/releases/download/20261006/llvm-mingw-20261006-ucrt-x86_64.zip'
sha = '317492c456aa27ee607a5919f1d2d38dcdc1112516a24d0bf4b00d078f52d17a'; out = 'llvm.zip' }
@{ url = 'https://github.com/mstorsjo/llvm-mingw/releases/download/20261104/llvm-mingw-20261104-ucrt-x86_64.zip'
sha = '552191b5754c49a5a20723276a6fc56541ea1922c4c50b7b669022333fc1b40f'; out = 'llvm.zip' }
)
foreach ($f in $files) {
Invoke-WebRequest $f.url -OutFile $f.out
$got = (Get-FileHash $f.out -Algorithm SHA256).Hash.ToLower()
if ($got -ne $f.sha) { throw "$($f.out): checksum $got does not match $($f.sha)" }
}
Expand-Archive llvm.zip "$env:RUNNER_TEMP\llvm"
Add-Content $env:GITHUB_PATH "$env:RUNNER_TEMP\llvm\llvm-mingw-20261006-ucrt-x86_64\bin"
Add-Content $env:GITHUB_PATH "$env:RUNNER_TEMP\llvm\llvm-mingw-20261104-ucrt-x86_64\bin"

- name: Build
shell: cmd
Expand Down