Allow outputting lut sens and allow changing lut output resolution #12
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: Release | |
on: | |
push: | |
tags: | |
- "*" | |
jobs: | |
build-linux: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup dependencies | |
run: | | |
rustup update stable | |
rustup default stable | |
sudo apt-get install libxcb-render0-dev libxcb-shape0-dev libxcb-xfixes0-dev libxkbcommon-dev libssl-dev | |
- name: Build | |
run: | | |
cargo build --release | |
strip target/release/rawaccel_convert_gui | |
tar -czvf target/release/rawaccel_convert_gui_${{ github.ref_name }}_linux_x64.tar.gz -C target/release/ rawaccel_convert_gui | |
- name: Release | |
uses: softprops/action-gh-release@v2 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
name: ${{ github.ref_name }} | |
draft: true | |
files: target/release/rawaccel_convert_gui_${{ github.ref_name }}_linux_x64.tar.gz | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
build-win: | |
runs-on: windows-latest | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup dependencies | |
run: | | |
rustup update stable | |
rustup default stable | |
- name: Build | |
run: | | |
cargo build --release | |
powershell Compress-Archive target/release/rawaccel_convert_gui.exe target/release/rawaccel_convert_gui_${{ github.ref_name }}_windows_x64.zip | |
- name: Release | |
uses: softprops/action-gh-release@v2 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
name: ${{ github.ref_name }} | |
draft: true | |
files: target/release/rawaccel_convert_gui_${{ github.ref_name }}_windows_x64.zip | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |