-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add initial CI * Temporary force CI for current branch * Ensure pnpm is installed * Use the latest version of pnpm Change step names * Add pnpm install step * Ensure fiberplane/fpx-types is checked in * Ensure that Tauri required dependencies are installed * Retrieve artifact using the tauri step output * Disable arm for Linux build for now This gives some compile issues with openssl. Which is currently required. Tauri v2 will solve this issues * Try to join the artifact paths to get all the files * Decode from json first Add ci flag * Use var directly * Multiline? * Roundabout way :rolling_eyes: * Add debug message * Also include directories as artifacts * Use manual commands Move to tauri v2 * Force bundles into a string value * Escape arguments Only include bundle directory * No space allowed :( * Include target in artifact path * Unblock frontends, build workflows Synchronize CI workflows Unset default-members to build and clippy everything * Resolve issues for cargo deny * Ensure tauri deps are installed during build_cli * Ignore generate code/json * Fix path * Fix order * Resolve clippies Co-authored: Steph
- Loading branch information
Showing
11 changed files
with
137 additions
and
28 deletions.
There are no files selected for viewing
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
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
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 |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
[workspace] | ||
resolver = "2" | ||
members = ["fpx", "fpx-app", "fpx-cli", "fpx-macros", "fpx-workers", "xtask"] | ||
default-members = ["fpx-cli"] | ||
|
||
[workspace.package] | ||
authors = ["Fiberplane <[email protected]>"] | ||
|
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
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
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
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
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
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
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