Skip to content

Commit 73f3f27

Browse files
authored
fix(automation): use user-facing Tangram installer (#137)
1 parent 9b676bd commit 73f3f27

File tree

1 file changed

+4
-36
lines changed

1 file changed

+4
-36
lines changed

.github/workflows/tag.yml

Lines changed: 4 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -6,56 +6,24 @@ on:
66

77
env:
88
BUN_VERSION: 1.1.43
9-
CARGO_TERM_COLOR: always
10-
RUST_BINARY_NAME: tangram
11-
RUST_REPO: tangramdotdev/tangram
12-
RUST_REV: 57c9cd4f999f381c9e03e8ff2ba807b22c0d72b2
139

1410
jobs:
1511
tag-and-push:
1612
runs-on: ubuntu-latest
1713

1814
steps:
19-
- name: Check out workflow repository
15+
- name: Check out packages repository
2016
uses: actions/checkout@v4
2117

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-
3418
- name: Install Bun
3519
uses: oven-sh/setup-bun@v1
3620
with:
3721
bun-version: ${{ env.BUN_VERSION }}
3822

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
5524
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
5927
6028
- name: Tag and push all packages
6129
shell: bash

0 commit comments

Comments
 (0)