|
6 | 6 |
|
7 | 7 | env:
|
8 | 8 | BUN_VERSION: 1.1.43
|
9 |
| - CARGO_TERM_COLOR: always |
10 |
| - RUST_BINARY_NAME: tangram |
11 |
| - RUST_REPO: tangramdotdev/tangram |
12 |
| - RUST_REV: 57c9cd4f999f381c9e03e8ff2ba807b22c0d72b2 |
13 | 9 |
|
14 | 10 | jobs:
|
15 | 11 | tag-and-push:
|
16 | 12 | runs-on: ubuntu-latest
|
17 | 13 |
|
18 | 14 | steps:
|
19 |
| - - name: Check out workflow repository |
| 15 | + - name: Check out packages repository |
20 | 16 | uses: actions/checkout@v4
|
21 | 17 |
|
22 |
| - - name: Check out Rust repository |
23 |
| - uses: actions/checkout@v4 |
24 |
| - with: |
25 |
| - repository: ${{ env.RUST_REPO }} |
26 |
| - path: tangram |
27 |
| - ref: ${{ env.RUST_REV }} |
28 |
| - |
29 |
| - - name: Install Rust toolchain |
30 |
| - uses: dtolnay/rust-toolchain@stable |
31 |
| - with: |
32 |
| - components: rustfmt, clippy |
33 |
| - |
34 | 18 | - name: Install Bun
|
35 | 19 | uses: oven-sh/setup-bun@v1
|
36 | 20 | with:
|
37 | 21 | bun-version: ${{ env.BUN_VERSION }}
|
38 | 22 |
|
39 |
| - - name: Cache Rust dependencies |
40 |
| - uses: actions/cache@v3 |
41 |
| - with: |
42 |
| - path: | |
43 |
| - ~/.cargo/registry |
44 |
| - ~/.cargo/git |
45 |
| - tangram/target |
46 |
| - key: ${{ runner.os }}-cargo-${{ hashFiles('tangram/**/Cargo.lock') }} |
47 |
| - restore-keys: | |
48 |
| - ${{ runner.os }}-cargo- |
49 |
| - |
50 |
| - - name: Build Tangram |
51 |
| - working-directory: tangram |
52 |
| - run: cargo build --verbose --release |
53 |
| - |
54 |
| - - name: Copy Tangram to path |
| 23 | + - name: Install Tangram |
55 | 24 | run: |
|
56 |
| - mkdir -p ./bin |
57 |
| - cp ./tangram/target/release/${{ env.RUST_BINARY_NAME }} ./bin/ |
58 |
| - echo "./bin" >> $GITHUB_PATH |
| 25 | + curl -fsSL https://tangram.dev/install.sh | bash |
| 26 | + echo "${HOME}/.tangram/bin" >> $GITHUB_PATH |
59 | 27 |
|
60 | 28 | - name: Tag and push all packages
|
61 | 29 | shell: bash
|
|
0 commit comments