mirror of
https://github.com/vosen/ZLUDA.git
synced 2025-04-20 00:14:45 +00:00
Add Windows CI build
This commit is contained in:
parent
4d83190594
commit
b4c0448534
1 changed files with 23 additions and 2 deletions
25
.github/workflows/rust.yml
vendored
25
.github/workflows/rust.yml
vendored
|
@ -36,9 +36,30 @@ jobs:
|
|||
run: |
|
||||
cargo xtask zip -r
|
||||
tar -xzf target/release/zluda.tar.gz -C target/release
|
||||
# https://stackoverflow.com/a/64195658
|
||||
- name: Set revision hash
|
||||
run: echo "SHORT_SHA=`git rev-parse --short HEAD`" >> $GITHUB_ENV
|
||||
- name: Upload
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: zluda-linux-$(git rev-parse --short HEAD)
|
||||
name: zluda-linux-${SHORT_SHA}
|
||||
path: target/release/zluda
|
||||
build_win:
|
||||
name: Build and publish (Windows)
|
||||
runs-on: windows-2019
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
submodules: true
|
||||
- name: Build
|
||||
run: |
|
||||
cargo xtask zip -r
|
||||
Expand-Archive -Path target/release/zluda.zip -DestinationPath target/release
|
||||
# https://stackoverflow.com/a/74033027
|
||||
- name: Set revision hash
|
||||
run: echo "SHORT_SHA=$("${{ github.sha }}".SubString(0, 8))" >> $env:GITHUB_ENV
|
||||
- name: Upload
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: zluda-linux-${{ env.SHORT_SHA }}
|
||||
path: target/release/zluda
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue