v0.0.2 #22
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: Pre-release | |
on: | |
pull_request: | |
branches: | |
- "main" | |
types: [opened,labeled,edited,synchronize] | |
jobs: | |
test-artifacts: | |
if: contains(github.event.pull_request.labels.*.name, 'release') | |
strategy: | |
matrix: | |
include: | |
- target: x86_64-unknown-linux-gnu | |
os: ubuntu-latest | |
# TODO: get ARM to properly cross-compile on x86_64 | |
# https://github.com/cognitive-engineering-lab/repo-quest/actions/runs/10222842981/job/28288152603#step:6:73 | |
# - target: aarch64-unknown-linux-gnu | |
# os: ubuntu-latest | |
- target: x86_64-apple-darwin | |
os: macos-latest | |
- target: aarch64-apple-darwin | |
os: macos-latest | |
# TODO: uncomment once Dioxus is updated to fix this issue | |
# https://github.com/cognitive-engineering-lab/repo-quest/actions/runs/10273817519/job/28429168040#step:6:355 | |
# - target: x86_64-pc-windows-msvc | |
# os: windows-latest | |
# - target: aarch64-pc-windows-msvc | |
# os: windows-latest | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install dependencies (Ubuntu) | |
if: matrix.os == 'ubuntu-latest' | |
run: sudo apt update -y && sudo apt install -y libgtk-3-dev libjavascriptcoregtk-4.1-dev libsoup-3.0-dev libwebkit2gtk-4.1-dev libxdo-dev | |
- name: Install Rust toolchain for target | |
uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
target: ${{ matrix.target }} | |
- name: Install dioxus-cli | |
uses: baptiste0928/cargo-install@v3 | |
with: | |
crate: dioxus-cli | |
version: 0.5.6 | |
- name: Build bundle | |
run: dx bundle --target ${{ matrix.target }} |