From a82a10779ad8db721fd7e975f4e1c569c87e9897 Mon Sep 17 00:00:00 2001 From: tottoto Date: Wed, 3 May 2023 10:07:49 +0900 Subject: [PATCH] chore: Replace seanmiddleditch/gha-setup-ninja with in-tree action --- .github/actions/setup-ninja/action.yml | 17 +++++++++++++++++ .../continuous-integration-workflow.yaml | 3 ++- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 .github/actions/setup-ninja/action.yml diff --git a/.github/actions/setup-ninja/action.yml b/.github/actions/setup-ninja/action.yml new file mode 100644 index 000000000..d6ddb1b4d --- /dev/null +++ b/.github/actions/setup-ninja/action.yml @@ -0,0 +1,17 @@ +runs: + using: "Composite" + steps: + - name: install ninja + if: runner.os == 'macOS' + run: brew install ninja + shell: bash + + - name: install ninja + if: runner.os == 'Windows' + run: choco install ninja + shell: bash + + - name: install ninja + if: runner.os == 'Linux' + run: sudo apt-get install ninja-build + shell: bash diff --git a/.github/workflows/continuous-integration-workflow.yaml b/.github/workflows/continuous-integration-workflow.yaml index ee92be673..f823743ba 100644 --- a/.github/workflows/continuous-integration-workflow.yaml +++ b/.github/workflows/continuous-integration-workflow.yaml @@ -48,7 +48,8 @@ jobs: uses: taiki-e/install-action@v2 with: tool: protoc@${{ env.PROTOC_VERSION }} - - uses: seanmiddleditch/gha-setup-ninja@v3 + - name: install ninja + uses: ./.github/actions/setup-ninja - uses: Swatinem/rust-cache@v2 - name: test run: cargo test --workspace --all-targets