Skip to content

Commit

Permalink
Add support for macOS runners
Browse files Browse the repository at this point in the history
Signed-off-by: Evgeniy Zayats <[email protected]>
  • Loading branch information
Evgeniy Zayats committed May 13, 2024
1 parent 5b662e6 commit 87fe3a7
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 4 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ permissions: write-all

jobs:
run_system_tests:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os.runner }}
strategy:
fail-fast: false
matrix:
os: [{runner: 'ubuntu-latest'}, {runner: 'macos-14'}]
timeout-minutes: 500
steps:
- name: Get the current date
Expand Down
23 changes: 20 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,24 @@ outputs:
runs:
using: composite
steps:
- name: Download latest stable neofs-cli for uploading reports to NeoFS
- name: Download latest stable neofs-cli for uploading reports to NeoFS for Linux
uses: dsaltares/[email protected]
if: runner.os == 'Linux'
with:
repo: 'nspcc-dev/neofs-node'
version: 'tags/v0.38.1'
file: 'neofs-cli-amd64'
version: 'tags/v0.41.1'
file: 'neofs-cli-linux-amd64'
target: 'neofs/neofs-cli'

- name: Download latest stable neofs-cli for uploading reports to NeoFS for macOS
uses: dsaltares/[email protected]
if: runner.os == 'macOS'
with:
repo: 'nspcc-dev/neofs-node'
version: 'tags/v0.41.1'
file: 'neofs-cli-darwin-arm64'
target: 'neofs/neofs-cli'

- name: Chmod latest stable neofs-cli
shell: bash
run: |
Expand All @@ -84,6 +94,13 @@ runs:
run: |
echo "$NEOFS_WALLET" | base64 -d > "$GITHUB_ACTION_PATH/wallet.json"
- name: Install required package if running on macos
shell: bash
run: |
if [ "$RUNNER_OS" == "macOS" ]; then
brew install libmagic
fi
- name: Prepare venv
shell: bash
id: prepare_venv
Expand Down

0 comments on commit 87fe3a7

Please sign in to comment.