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

Unix build #24

Merged
merged 6 commits into from
Oct 5, 2024
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/alpha-build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Alpha build
name: Alpha Windows build

on: push

Expand Down
76 changes: 76 additions & 0 deletions .github/workflows/unix-alpha-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: Alpha Unix build

on: push

jobs:
build:
strategy:
matrix:
include:
- os: macos-latest
NAME: macos
- os: ubuntu-latest
NAME: linux

runs-on: ${{ matrix.os}}

env:
TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_SIGNING_PRIVATE_KEY }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install cross-rs
run: cargo install cross

- name: Build service executable
if: matrix.NAME == 'linux'
run: cd platforms/unix/daemon && cargo build --release && cross build --release --target aarch64-unknown-linux-gnu

- name: Build service executable
if: matrix.NAME == 'macos'
run: cd platforms/unix/daemon && cargo build --release

- name: Install node modules
run: npm ci

- name: Install webkit2gtk (ubuntu only)
if: matrix.NAME == 'linux'
run: |
sudo apt-get update
sudo apt-get install -y libwebkit2gtk-4.1-dev libappindicator3-dev librsvg2-dev patchelf

# Build service installer
- name: Build service installer
run: npm run build:core

- name: Get version
id: version
uses: notiz-dev/github-action-json-property@release
with:
path: package.json
prop_path: version

- name: Remove useless folders
run: |
rm -rf target/release/build
rm -rf target/release/deps
rm -rf target/release/bundle/appimage/cores.AppDir
npm run rename
shell: bash

# Upload the unpackaged app
- name: Upload service installer
uses: actions/upload-artifact@v4
with:
name: "cores-service-${{matrix.NAME}}-x64-installer"
path: "target/release"

# Upload the unpackaged app
- name: Upload service installer
if: matrix.NAME == 'linux'
uses: actions/upload-artifact@v4
with:
name: "cores-service-${{matrix.NAME}}-arm64-service"
path: "target/aarch64-unknown-linux-gnu/release"
Loading