Skip to content

Commit

Permalink
chore: Replace seanmiddleditch/gha-setup-ninja with in-tree action
Browse files Browse the repository at this point in the history
  • Loading branch information
tottoto committed May 3, 2023
1 parent db7fc7c commit a82a107
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .github/actions/setup-ninja/action.yml
Original file line number Diff line number Diff line change
@@ -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
3 changes: 2 additions & 1 deletion .github/workflows/continuous-integration-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a82a107

Please sign in to comment.