Skip to content

Commit 6a65b73

Browse files
committed
build kettle once for project builds
1 parent c7a2026 commit 6a65b73

1 file changed

Lines changed: 24 additions & 2 deletions

File tree

.github/workflows/test.yml

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,20 @@ jobs:
6565
shell: bash
6666
run: ./bin/test
6767

68+
build:
69+
name: Build Kettle
70+
steps:
71+
- uses: actions/checkout@v6
72+
- uses: actions-rust-lang/setup-rust-toolchain@v1
73+
- run: cargo build --release
74+
- uses: actions/upload-artifact@v8
75+
with:
76+
name: kettle
77+
path: target/release/kettle
78+
if-no-files-found: error
79+
6880
build-projects:
81+
needs: [build]
6982
name: Build ${{ matrix.project }} with Kettle
7083
runs-on: ubuntu-latest
7184
strategy:
@@ -75,9 +88,18 @@ jobs:
7588
- burntsushi/ripgrep
7689
- eza-community/eza
7790
steps:
78-
- uses: actions/checkout@v6
91+
- name: Check out ${{ matrix.project }}
92+
run: git clone --depth=1 "https://github.com/${{ matrix.owner }}/${{ matrix.project }}
93+
working-directory: /tmp
7994
- uses: actions-rust-lang/setup-rust-toolchain@v1
95+
if: ${{ matrix.toolchain == 'rust' }}
96+
working-directory: /tmp/${{ matrix.project }}
8097
- uses: cachix/install-nix-action@v31
98+
if: ${{ matrix.toolchain == 'nix' }}
8199
with:
82100
github_access_token: ${{ secrets.GITHUB_TOKEN }}
83-
- run: bin/kettle-build ${{ matrix.project }}
101+
working-directory: /tmp/${{ matrix.project }}
102+
- uses: actions/download-artifact@v8
103+
with:
104+
name: kettle
105+
- run: ./kettle build /tmp/${{ matrix.project }}

0 commit comments

Comments
 (0)