Skip to content

Commit

Permalink
ci/macos: add macOS build process
Browse files Browse the repository at this point in the history
By setting up the current PR branch as a submodule in MacVFN, we can
build MacVFN and thereby verify the current libvfn branch is valid. No
actual device or code test is performed.

Signed-off-by: Mads Ynddal <[email protected]>
  • Loading branch information
Baekalfen committed May 22, 2024
1 parent 69de15a commit 9cdfbb5
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,33 @@ jobs:
name: meson test log
path: build/meson-logs/testlog.txt

macos-build:
name: "macOS build"
needs: [sanity]
runs-on: macos-latest

steps:
- name: checkout
uses: actions/checkout@v4
with:
repository: samsungds/macvfn
ref: libvfn4 # TODO: 'master' once merged

- name: Configure PR branch as submodule
run: |
SUBMODULE_PATH="MacVFN/libvfn"
BRANCH_NAME=${GITHUB_HEAD_REF#refs/heads/}
git config -f .gitmodules submodule.$SUBMODULE_PATH.url ${GITHUB_SERVER_URL}/${{github.event.pull_request.head.repo.full_name}}
git config -f .gitmodules submodule.$SUBMODULE_PATH.branch "$BRANCH_NAME"
cat .gitmodules
git submodule update --remote --init $SUBMODULE_PATH
- name: Install dependencies
run: brew install meson

- name: Xcode build
run: make build

device-test:
name: "run emulated nvme device tests"

Expand Down

0 comments on commit 9cdfbb5

Please sign in to comment.