Update deps #58
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and release | |
on: | |
push: | |
tags: | |
- "v*.*.*" | |
jobs: | |
release: | |
name: Release - ${{ matrix.platform.os }} | |
strategy: | |
matrix: | |
platform: | |
- os: ubuntu-20.04 | |
target: x86_64-unknown-linux-gnu | |
bin: rlviser | |
name: rlviser-x86_64-unknown-linux-gnu.tar.gz | |
- os: windows-latest | |
target: x86_64-pc-windows-msvc | |
bin: rlviser.exe | |
name: rlviser-x86_64-pc-windows-msvc.zip | |
runs-on: ${{ matrix.platform.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Get required packages (Linux only) | |
if: contains(matrix.platform.os, 'ubuntu') | |
run: sudo apt install g++ pkg-config libx11-dev libasound2-dev libudev-dev libwayland-dev libxkbcommon-dev | |
- name: Cache cargo & target directories | |
uses: Swatinem/rust-cache@v2 | |
- name: Build binary | |
uses: houseabsolute/actions-rust-cross@v0 | |
with: | |
target: ${{ matrix.platform.target }} | |
args: "--release" | |
- name: Upload artifact (Windows) | |
if: contains(matrix.platform.os, 'windows') | |
uses: actions/upload-artifact@v4.3.3 | |
with: | |
name: windows | |
path: target/**/release/rlviser.exe | |
- name: Upload artifact (Ubuntu) | |
if: contains(matrix.platform.os, 'ubuntu') | |
uses: actions/upload-artifact@v4.3.3 | |
with: | |
name: linux | |
path: target/**/release/rlviser | |
publish: | |
needs: [release] | |
name: Publish | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Download artifacts | |
uses: actions/download-artifact@v4 | |
with: | |
path: target/ | |
merge-multiple: true | |
- name: Publish to GitHub Releases | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: ./**/target/** | |
generate_release_notes: true | |
body: | | |
Remember that you should download `umodel` for RLViser's use if you want more than the minimalist default assets. | |
Directions are included in the README. |