This repository has been archived by the owner on Jan 12, 2025. It is now read-only.
dependency updates #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: A new release | |
on: | |
push: | |
tags: | |
- "v*" | |
workflow_dispatch: | |
env: | |
CARGO_TERM_COLOR: always | |
permissions: | |
contents: write | |
jobs: | |
release: | |
strategy: | |
fail-fast: true | |
matrix: | |
platform: [windows-latest, ubuntu-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Install NSIS (windows) | |
if: matrix.platform == 'windows-latest' | |
uses: repolevedavaj/[email protected] | |
with: | |
nsis-version: 3.09 | |
- name: Install Qt5 | |
if: matrix.platform == 'ubuntu-latest' | |
run: sudo apt update && sudo apt install qtbase5-dev libqt5opengl5-dev | |
- name: Build the app | |
run: cargo build --release --verbose | |
- name: Build the installer (windows) | |
if: matrix.platform == 'windows-latest' | |
run: makensis.exe setup.nsi | |
- name: Publish GNU+Linux | |
if: matrix.platform == 'ubuntu-latest' | |
uses: softprops/action-gh-release@v1 | |
with: | |
generate_release_notes: true | |
prerelease: contains('preview', ${{ github.ref_name}}) | |
token: ${{ secrets.GITHUB_TOKEN }} | |
files: target/release/quadrant_lite | |
- name: Publish windows | |
if: matrix.platform == 'windows-latest' | |
uses: softprops/action-gh-release@v1 | |
with: | |
generate_release_notes: true | |
prerelease: contains('preview', ${{ github.ref_name}}) | |
token: ${{ secrets.GITHUB_TOKEN }} | |
files: QuadrantLiteSetup.exe |