Skip to content

Commit 1aa5068

Browse files
committed
Use prebuilt vulkan binaries on linux
1 parent 236fe33 commit 1aa5068

File tree

1 file changed

+32
-13
lines changed

1 file changed

+32
-13
lines changed

.github/workflows/release.yml

Lines changed: 32 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,9 @@ on:
66
- "v*.*.*"
77

88
jobs:
9-
release-artifacts:
10-
name: Upload prebuilt binaries on GitHub
11-
runs-on: ${{ matrix.os }}
12-
strategy:
13-
matrix:
14-
include:
15-
- os: windows-latest
16-
artifact: "nuance.exe"
17-
- os: ubuntu-latest
18-
artifact: "nuance"
9+
release-linux:
10+
name: Build binaries (linux) and publish on crates.io
11+
runs-on: ubuntu-latest
1912
steps:
2013
- name: Checkout
2114
uses: actions/checkout@v2
@@ -28,16 +21,42 @@ jobs:
2821
profile: minimal
2922
components: rust-docs
3023
- name: Install gtk
31-
if: matrix.os == 'ubuntu-latest'
3224
run: sudo apt update && sudo apt install libgtk-3-dev
25+
- name: Install Vulkan SDK
26+
run: |
27+
wget -qO - https://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo apt-key add -
28+
sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-1.2.176-focal.list https://packages.lunarg.com/vulkan/1.2.176/lunarg-vulkan-1.2.176-focal.list
29+
sudo apt update
30+
sudo apt install vulkan-sdk
3331
- name: Build release
3432
run: cargo build --release
3533
- name: Upload release artifact
3634
uses: softprops/action-gh-release@v1
3735
with:
38-
files: target/release/${{ matrix.artifact }}
36+
files: target/release/nuance
3937
env:
4038
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4139
- name: Publish release on crates.io
42-
if: matrix.os == 'windows-latest'
4340
run: cargo publish --token ${{ secrets.CRATES_IO_TOKEN }}
41+
release-windows:
42+
name: Build binaries (windows)
43+
runs-on: ubuntu-latest
44+
steps:
45+
- name: Checkout
46+
uses: actions/checkout@v2
47+
- uses: seanmiddleditch/gha-setup-ninja@master
48+
- name: Install rust stable
49+
uses: actions-rs/toolchain@v1
50+
with:
51+
toolchain: stable
52+
default: true
53+
profile: minimal
54+
components: rust-docs
55+
- name: Build release
56+
run: cargo build --release
57+
- name: Upload release artifact
58+
uses: softprops/action-gh-release@v1
59+
with:
60+
files: target/release/nuance.exe
61+
env:
62+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)