Skip to content

Commit

Permalink
github: add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
osy committed Nov 18, 2024
1 parent b788a24 commit 83edcce
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build
on:
push:
pull_request:

jobs:
build-macos:
name: Build macOS
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install GLib
run: brew install glib
- name: Install GLib (x86_64)
run: |
arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
/usr/local/bin/brew install glib || true # this can error on linking
- name: Build
run: xcodebuild archive -scheme vd_agent -archivePath vd_agent.xcarchive
- name: Archive
run: tar -acf vd_agent.xcarchive.tgz vd_agent.xcarchive
- name: Upload
uses: actions/upload-artifact@v3
with:
name: vd_agent-macOS
path: vd_agent.xcarchive.tgz

0 comments on commit 83edcce

Please sign in to comment.