Skip to content

Commit 32fb0d5

Browse files
committed
Add more complete self-hosted Mac CI
1 parent b6fd3d9 commit 32fb0d5

File tree

3 files changed

+66
-0
lines changed

3 files changed

+66
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: "macfuse-ci"
2+
description: "Shared MacFUSE CI steps"
3+
runs:
4+
using: "composite"
5+
steps:
6+
- name: Add Homebrew to PATH
7+
shell: bash
8+
run: |
9+
set -euxo pipefail
10+
if [ -x /opt/homebrew/bin/brew ]; then
11+
eval "$(/opt/homebrew/bin/brew shellenv)"
12+
elif [ -x /usr/local/bin/brew ]; then
13+
eval "$(/usr/local/bin/brew shellenv)"
14+
else
15+
echo "brew not found in /opt/homebrew or /usr/local" >&2
16+
exit 1
17+
fi
18+
echo "$HOMEBREW_PREFIX/bin" >> "$GITHUB_PATH"
19+
echo "$HOMEBREW_PREFIX/sbin" >> "$GITHUB_PATH"
20+
21+
- name: Install Rust toolchain
22+
uses: dtolnay/rust-toolchain@stable
23+
24+
- name: Run tests
25+
shell: bash
26+
run: |
27+
cargo test --all --all-targets --features=libfuse -- --skip=mnt::test::mount_unmount
28+
./osx_mount_tests.sh
29+
./tests/macos_pjdfs.sh
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: MacStadium CI
2+
3+
on:
4+
pull_request:
5+
6+
permissions:
7+
contents: read
8+
9+
jobs:
10+
macfuse:
11+
runs-on: macstadium
12+
environment: macstadium # approval gate for security
13+
env:
14+
PKG_CONFIG_PATH: /usr/local/lib/pkgconfig:/opt/homebrew/lib/pkgconfig:$PKG_CONFIG_PATH
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- uses: ./.github/actions/macfuse-ci
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: MacStadium CI
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
macfuse:
13+
runs-on: macstadium
14+
env:
15+
PKG_CONFIG_PATH: /usr/local/lib/pkgconfig:/opt/homebrew/lib/pkgconfig:$PKG_CONFIG_PATH
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- uses: ./.github/actions/macfuse-ci

0 commit comments

Comments
 (0)