-
Notifications
You must be signed in to change notification settings - Fork 12
Re-enable experimental support for cvmfs on macos runners #28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 2 commits
deac69f
4b0b51b
f66fa06
128a43c
ca581e2
04bfa0e
fb0c387
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| name: macOS | ||
| on: | ||
| push: | ||
| pull_request: | ||
| schedule: | ||
| - cron: '33 3 * * *' | ||
| jobs: | ||
| macOS-minimal: | ||
| runs-on: ${{ matrix.os }} | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| os: [macos-latest, macos-11] | ||
| steps: | ||
| - uses: actions/checkout@v2 | ||
| - uses: Homebrew/actions/setup-homebrew@master | ||
| - uses: ./ | ||
| with: | ||
| cvmfs_repositories: 'sft.cern.ch' | ||
| - name: Test CernVM-FS | ||
| run: | | ||
| echo "### Dump default.local ###" | ||
| cat /etc/cvmfs/default.local | ||
| echo "### Try to ls on /Users/Shared/cvmfs/sft.cern.ch/ ###" | ||
| ls /Users/Shared/cvmfs/sft.cern.ch/ | ||
| echo "### Try to ls on /cvmfs/sft.cern.ch/ ###" | ||
| ls /cvmfs/sft.cern.ch/ |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -42,15 +42,22 @@ if [ "$(uname)" == "Linux" ]; then | |
| fi | ||
| elif [ "$(uname)" == "Darwin" ]; then | ||
| # Warn about the phasing out of MacOS support for this action | ||
| echo "::error::The CernVM-FS GitHub Action's support for MacOS has been \ | ||
| phased out with macos-10.15." | ||
| echo "warning The CernVM-FS GitHub Action's support for MacOS \ | ||
| is still experimental." | ||
| # Temporary fix for macOS until cvmfs 2.8 is released | ||
| if [ -z "${CVMFS_HTTP_PROXY}" ]; then | ||
| export CVMFS_HTTP_PROXY='DIRECT' | ||
| fi | ||
| brew install --cask macfuse | ||
| brew tap macos-fuse-t/homebrew-cask | ||
| brew install fuse-t | ||
|
||
| curl -L -o cvmfs-latest.pkg ${CVMFS_MACOS_PKG_LOCATION} | ||
| sudo installer -package cvmfs-latest.pkg -target / | ||
| # / is readonly on macos 11+ - do 'synthetic firmlink' to create /cvmfs | ||
| sudo zsh -c 'echo -e "cvmfs\tUsers/Shared/cvmfs\n#comment\n" > /etc/synthetic.conf' | ||
| sudo chown root:wheel /etc/synthetic.conf | ||
| sudo chmod a+r /etc/synthetic.conf | ||
| # apfs.util seems to return non-zero error codes also on success | ||
| sudo /System/Library/Filesystems/apfs.fs/Contents/Resources/apfs.util -t || true | ||
| else | ||
| echo "Unsupported platform" | ||
| exit 1 | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.