Skip to content

Commit

Permalink
ci: fix inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
ifiokjr committed Aug 25, 2024
1 parent 2a6d65d commit 4889c20
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
7 changes: 0 additions & 7 deletions .github/actions/devenv/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,6 @@ runs:
key: ${{ runner.os }}-cargo-bin-${{ hashFiles('rust-toolchain.toml') }}
restore-keys: |
${{ runner.os }}-cargo-bin-
- name: cache local binaries
uses: actions/cache@v4
with:
path: ./.local-cache
key: ${{ runner.os }}-local-cache-${{ hashFiles('setup/cache-versions.json') }}
restore-keys: |
${{ runner.os }}-local-cache-
- name: get pnpm store directory
id: pnpm-cache
run: echo "store=$(pnpm store path)" >> $GITHUB_OUTPUT
Expand Down
13 changes: 11 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ jobs:
uses: actions/checkout@v4
- name: setup
uses: ./.github/actions/devenv
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
nix-cache: /tmp/nixcache
- name: test
run: test:all
shell: bash
Expand All @@ -49,6 +52,9 @@ jobs:
uses: actions/checkout@v4
- name: setup
uses: ./.github/actions/devenv
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
nix-cache: /tmp/nixcache
- name: build
run: cargo build
shell: bash
Expand All @@ -57,10 +63,13 @@ jobs:
runs-on: ubuntu-latest
needs: [test]
steps:
- name: setup Rust
uses: dtolnay/rust-toolchain@stable
- name: checkout
uses: actions/checkout@v4
- name: setup
uses: ./.github/actions/devenv
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
nix-cache: /tmp/nixcache
- name: release
uses: MarcoIeni/[email protected]
env:
Expand Down

0 comments on commit 4889c20

Please sign in to comment.