Skip to content

Commit 476374a

Browse files
committed
ci/macos: add macOS build process
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]>
1 parent 4708d11 commit 476374a

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/build.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,33 @@ jobs:
189189
name: meson test log
190190
path: build/meson-logs/testlog.txt
191191

192+
macos-build:
193+
name: "macOS build"
194+
needs: [sanity]
195+
runs-on: macos-latest
196+
197+
steps:
198+
- name: checkout
199+
uses: actions/checkout@v4
200+
with:
201+
repository: samsungds/macvfn
202+
ref: libvfn4 # TODO: 'master' once merged
203+
204+
- name: Configure PR branch as submodule
205+
run: |
206+
SUBMODULE_PATH="MacVFN/libvfn"
207+
BRANCH_NAME=${GITHUB_HEAD_REF#refs/heads/}
208+
git config -f .gitmodules submodule.$SUBMODULE_PATH.url ${GITHUB_SERVER_URL}/${{github.event.pull_request.head.repo.full_name}}
209+
git config -f .gitmodules submodule.$SUBMODULE_PATH.branch "$BRANCH_NAME"
210+
cat .gitmodules
211+
git submodule update --remote --init $SUBMODULE_PATH
212+
213+
- name: Install dependencies
214+
run: brew install meson
215+
216+
- name: Xcode build
217+
run: make build
218+
192219
device-test:
193220
name: "run emulated nvme device tests"
194221

0 commit comments

Comments
 (0)