Skip to content

Commit

Permalink
Add macOS workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
valentinegb committed May 27, 2024
1 parent 06ee1dc commit e966285
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
on:
push:
branches: [main]
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
name: macOS
jobs:
macos:
name: macOS
runs-on: macos-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies
run: brew bundle
- name: Setup
run: brew bundle exec -- meson setup build -Ddistro=true --prefix=${{ github.workspace }}/tuba-macos
- name: Configure
run: brew bundle exec -- meson configure build -Ddevel=true
- name: Compile
run: brew bundle exec -- meson compile -C build --verbose
- name: Install
run: brew bundle exec -- meson install -C build
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: tuba-macos
path: tuba-macos
if-no-files-found: error
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ builddir
*.exe
/tuba_windows_portable/
tuba_windows_portable.zip
Brewfile.lock.json
13 changes: 13 additions & 0 deletions Brewfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
brew "cmake"
brew "meson"
brew "ninja"
brew "pkg-config"
brew "vala"
brew "adwaita-icon-theme"
brew "glib"
brew "gtksourceview5"
brew "json-glib"
brew "libadwaita"
brew "libgee"
brew "libsecret"
brew "libsoup"

0 comments on commit e966285

Please sign in to comment.