-
Notifications
You must be signed in to change notification settings - Fork 5
54 lines (46 loc) · 1.76 KB
/
pre-release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
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 }}