From 87fe3a7a93d7b4dbf16a718e6306ba6e89a086c6 Mon Sep 17 00:00:00 2001 From: Evgeniy Zayats Date: Mon, 13 May 2024 13:16:11 -0400 Subject: [PATCH] Add support for macOS runners Signed-off-by: Evgeniy Zayats --- .github/workflows/tests.yml | 6 +++++- action.yml | 23 ++++++++++++++++++++--- 2 files changed, 25 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 67632e0..93af1c0 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 diff --git a/action.yml b/action.yml index 771c94b..a564503 100644 --- a/action.yml +++ b/action.yml @@ -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/fetch-gh-release-asset@1.1.1 + 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/fetch-gh-release-asset@1.1.1 + 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: | @@ -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