Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Taurification #265

Draft
wants to merge 19 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 13 additions & 14 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# Test and build the project.
---
name: Build

name: Build cli
on:
# Allow manual trigger
workflow_dispatch:
Expand All @@ -12,23 +11,17 @@ on:

# Run on every push to main
push:
branches: ["main"]
branches: ["main", "tauri-main"]

jobs:
build:
name: Create binary for ${{ matrix.target }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest-8-cores

name: Create binary for ${{ matrix.target }}
runs-on: ${{ matrix.os }}
env:
CARGO: cargo
TARGET_FLAGS: ""
TARGET_DIR: ../target
RUST_BACKTRACE: 1
- os: ubuntu-latest-8-cores
target: x86_64-unknown-linux-gnu

permissions:
id-token: write
Expand All @@ -40,6 +33,12 @@ jobs:
fetch-depth: 0
submodules: recursive

- name: Install dependencies (Linux)
if: matrix.os == 'ubuntu-latest-8-cores'
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf

- name: Install Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
Expand All @@ -63,6 +62,6 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: fpx_${{ matrix.target }}
path: target/release/fpx
path: target/release/fpx-cli
if-no-files-found: error
retention-days: 7
98 changes: 98 additions & 0 deletions .github/workflows/build_app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
# Build the fpx app. This will only be published as a build artifact.
---
name: Build app
on:
# Allow manual trigger
workflow_dispatch:

# Run on every pull request
pull_request:
branches: ["*"]

# Run on every push to main
push:
branches: ["main", "tauri-main"]

jobs:
build-app:
name: Create binary for ${{ matrix.target }}
runs-on: ${{ matrix.os }}

# permissions:
# id-token: write
# contents: read

strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest-8-cores
target: x86_64-unknown-linux-gnu
bundles: appimage
- os: macos-latest
target: aarch64-apple-darwin
bundles: app,dmg
- os: macos-latest
target: x86_64-apple-darwin
bundles: app,dmg

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: recursive

# Steps required for our project, or our dependencies (like Tauri)

- name: Install dependencies (Linux)
if: matrix.os == 'ubuntu-latest-8-cores'
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 9
run_install: false

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: "pnpm"

- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
components: clippy
target: ${{ matrix.target }}
rustflags: "" # Do not fail on warnings, so reset the default value to empty

- name: Install tauri-cli
run: cargo install [email protected]

# Steps related to our project

- name: Install dependencies
run: pnpm install
env:
CI: true

- name: Build shared types
run: pnpm build:types

- name: Build fpx-app
run: |
cargo tauri build \
--ci \
--target "${{ matrix.target }}" \
--bundles "${{ matrix.bundles }}"

- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: fpx_${{ matrix.target }}
if-no-files-found: error
retention-days: 7
path: target/${{ matrix.target }}/release/bundle
10 changes: 9 additions & 1 deletion .github/workflows/build_frontends.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,16 @@ env:
jobs:
build_packages:
name: Build packages
runs-on: ubuntu-latest
runs-on: ubuntu-latest-8-cores
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install dependencies (Linux)
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.0-dev libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf

- name: Setup pnpm
uses: pnpm/action-setup@v4
with:
Expand All @@ -41,6 +46,9 @@ jobs:
env:
CI: true

- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1

- name: Build shared types
run: pnpm build:types

Expand Down
Loading
Loading