Skip to content

Commit

Permalink
Try to consolidate more workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
yamadapc committed Aug 23, 2024
1 parent fd9106b commit fc3a5da
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 17 deletions.
8 changes: 0 additions & 8 deletions .github/actions/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@ run:
setup:
name: Setup dependencies
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
lfs: {{ inputs.lfs }}
- uses: Swatinem/rust-cache@v2
with:
shared-key: ${{ inputs.cache_key }}
Expand Down Expand Up @@ -38,10 +34,6 @@ run:
tool: cargo-tarpaulin,cargo-nextest

inputs:
lfs:
description: 'Enable LFS clone'
required: true
default: false
cache_key:
description: 'A cache key for this step'
required: true
Expand Down
21 changes: 17 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ jobs:
- macos-14
- ubuntu-20.04
steps:
- uses: ../actions/common.yml
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: ./.github/actions/common.yml
with:
lfs: false
cache_key: ${{ matrix.os }}_build
Expand All @@ -45,7 +48,11 @@ jobs:
- macos-14
- ubuntu-20.04
steps:
- uses: ../actions/common.yml
- uses: actions/checkout@v2
with:
submodules: recursive
lfs: true
- uses: ./.github/actions/common.yml
with:
lfs: true
cache_key: ${{ matrix.os }}_test
Expand All @@ -67,7 +74,10 @@ jobs:
- macos-14
- ubuntu-20.04
steps:
- uses: ../actions/common.yml
- uses: actions/checkout@v2
with:
submodules: recursive
- uses: ./.github/actions/common.yml
with:
lfs: true
cache_key: ${{ matrix.os }}_lint
Expand All @@ -76,4 +86,7 @@ jobs:
with:
name: build_target
- name: Run clippy
run: ./scripts/clippy.sh
run: ./scripts/clippy.sh

dart:
uses: ./dart.yml
6 changes: 1 addition & 5 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: Dart

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
on: {}

jobs:
build_metronome:
Expand Down

0 comments on commit fc3a5da

Please sign in to comment.