Skip to content

feat: Add CI build mac binary #103

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

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
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
40 changes: 40 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build

on:
push:

jobs:
mac-build:
runs-on: macos-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Cache cargo registry
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}

- name: Install dependencies
run: brew install gtk+3 atk gdk-pixbuf pango adwaita-icon-theme jpeg

- name: Build CLI
run: cargo build --bin library-loader-cli --release

- name: Buiid GUI
run: cargo build --bin library-loader-gui --release

- name: Artifact
uses: actions/upload-artifact@v4
with:
name: library-loader
path: |
target/release/library-loader-cli
target/release/library-loader-gui