From 8ba1b441e509f7774cce130be9dee396ec063cde Mon Sep 17 00:00:00 2001 From: Jonas Bushart Date: Mon, 13 Feb 2023 23:21:02 +0100 Subject: [PATCH 1/2] Run CI on more platforms --- .github/workflows/ci.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 981eb40..75ed433 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,8 +8,8 @@ on: jobs: install: - name: Rust ${{matrix.rust}} - runs-on: ubuntu-latest + name: Rust ${{matrix.rust}} ${{matrix.os}} + runs-on: ${{matrix.os}} strategy: fail-fast: false matrix: @@ -23,6 +23,11 @@ jobs: "beta", "stable", ] + os: [ + "ubuntu-latest", + "windows-latest", + "macos-latest", + ] steps: - uses: actions/checkout@v3 # Test toolchain file support From 40e33d4912eba9276a5b0f8c30aeea91d96ad414 Mon Sep 17 00:00:00 2001 From: Jonas Bushart Date: Mon, 13 Feb 2023 23:28:57 +0100 Subject: [PATCH 2/2] Install newer bash on macOS The code snippets are written with bash newer than 2014 in mind. This works fine on Linux and Windows, but not macOS. --- action.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/action.yml b/action.yml index fd9e0c2..3a4177b 100644 --- a/action.yml +++ b/action.yml @@ -44,6 +44,13 @@ outputs: runs: using: composite steps: + # The later code uses "newer" bash features, which are not available in the ancient bash 3 (from 2014) of macOS + - name: Unbork mac + if: runner.os == 'macOS' + run: | + brew install bash + shell: bash + - id: flags run: | : construct rustup command line