3.3.0 #66
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
# Github Actions configuration file | |
name: Build | |
on: | |
release: | |
types: | |
- published | |
jobs: | |
build: | |
runs-on: ${{ matrix.config.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
- os: windows-latest | |
package: ZIP | |
- os: windows-latest | |
package: WIX | |
- os: ubuntu-22.04 | |
package: TGZ | |
- os: ubuntu-22.04 | |
package: DEB | |
- os: ubuntu-22.04 | |
package: RPM | |
steps: | |
- name: Setup Windows/MSVC | |
if: runner.os == 'Windows' | |
uses: ilammy/msvc-dev-cmd@v1 | |
with: | |
arch: amd64_x86 | |
- name: Setup Linux | |
if: runner.os == 'Linux' | |
run: | | |
sudo apt-get update | |
sudo apt-get install libudev-dev libusb-1.0-0-dev libx11-dev libdbus-1-dev libwayland-dev libxkbcommon-dev rpm | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
submodules: recursive | |
- name: Configure CMake | |
run: cmake -B ${{github.workspace}}/build -DCMAKE_INSTALL_PREFIX=dist | |
- name: Build | |
run: cmake --build ${{github.workspace}}/build --config Release | |
- name: Install | |
run: cmake --install ${{github.workspace}}/build --config Release | |
- name: Package | |
run: cpack -G ${{ matrix.config.package }} --config ${{github.workspace}}/build/CPackConfig.cmake | |
- name: Upload to Github release | |
uses: xresloader/upload-to-github-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
file: "*.zip;*.tar.gz;*.msi;*.deb;*.rpm" | |
tags: true | |
draft: false |