Skip to content

Commit

Permalink
Use prebuilt vulkan binaries on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Gui-Yom committed May 12, 2021
1 parent 236fe33 commit 1aa5068
Showing 1 changed file with 32 additions and 13 deletions.
45 changes: 32 additions & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,9 @@ on:
- "v*.*.*"

jobs:
release-artifacts:
name: Upload prebuilt binaries on GitHub
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: windows-latest
artifact: "nuance.exe"
- os: ubuntu-latest
artifact: "nuance"
release-linux:
name: Build binaries (linux) and publish on crates.io
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -28,16 +21,42 @@ jobs:
profile: minimal
components: rust-docs
- name: Install gtk
if: matrix.os == 'ubuntu-latest'
run: sudo apt update && sudo apt install libgtk-3-dev
- name: Install Vulkan SDK
run: |
wget -qO - https://packages.lunarg.com/lunarg-signing-key-pub.asc | sudo apt-key add -
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
sudo apt update
sudo apt install vulkan-sdk
- name: Build release
run: cargo build --release
- name: Upload release artifact
uses: softprops/action-gh-release@v1
with:
files: target/release/${{ matrix.artifact }}
files: target/release/nuance
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish release on crates.io
if: matrix.os == 'windows-latest'
run: cargo publish --token ${{ secrets.CRATES_IO_TOKEN }}
release-windows:
name: Build binaries (windows)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: seanmiddleditch/gha-setup-ninja@master
- name: Install rust stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
default: true
profile: minimal
components: rust-docs
- name: Build release
run: cargo build --release
- name: Upload release artifact
uses: softprops/action-gh-release@v1
with:
files: target/release/nuance.exe
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 1aa5068

Please sign in to comment.