Skip to content

Commit

Permalink
Add pre-release CI
Browse files Browse the repository at this point in the history
  • Loading branch information
willcrichton committed Aug 2, 2024
1 parent ddb7b1c commit a6d2c4f
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/pre-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
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
- target: aarch64-unknown-linux-gnu
os: ubuntu-latest
- target: x86_64-apple-darwin
os: macos-latest
- target: aarch64-apple-darwin
os: macos-latest
- target: x86_64-pc-windows-msvc
os: windows-latest
- target: aarch64-pc-windows-msvc
os: windows-latest

runs-on: ${{ matrix.os }}
steps:
- 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 --release --target ${{ matrix.target }}
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,7 @@ tokio = { version = "1.38.0", features = ["full"] }
tokio-retry = "0.3.0"
toml = "0.8.15"
tracing = "0.1.40"

[profile.release]
strip = true
lto = true

0 comments on commit a6d2c4f

Please sign in to comment.