From 85370b1d227c63e05a56bf60c02d7ee771f41339 Mon Sep 17 00:00:00 2001 From: Ben Lovy Date: Thu, 9 Jan 2025 16:42:20 -0500 Subject: [PATCH 1/5] dont compile tangram --- .github/workflows/tag.yml | 32 ++------------------------------ 1 file changed, 2 insertions(+), 30 deletions(-) diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index 3b544c82..74af6ccc 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -6,10 +6,6 @@ on: env: BUN_VERSION: 1.1.43 - CARGO_TERM_COLOR: always - RUST_BINARY_NAME: tangram - RUST_REPO: tangramdotdev/tangram - RUST_REV: 57c9cd4f999f381c9e03e8ff2ba807b22c0d72b2 jobs: tag-and-push: @@ -19,12 +15,6 @@ jobs: - name: Check out workflow repository uses: actions/checkout@v4 - - name: Check out Rust repository - uses: actions/checkout@v4 - with: - repository: ${{ env.RUST_REPO }} - path: tangram - ref: ${{ env.RUST_REV }} - name: Install Rust toolchain uses: dtolnay/rust-toolchain@stable @@ -36,26 +26,8 @@ jobs: with: bun-version: ${{ env.BUN_VERSION }} - - name: Cache Rust dependencies - uses: actions/cache@v3 - with: - path: | - ~/.cargo/registry - ~/.cargo/git - tangram/target - key: ${{ runner.os }}-cargo-${{ hashFiles('tangram/**/Cargo.lock') }} - restore-keys: | - ${{ runner.os }}-cargo- - - - name: Build Tangram - working-directory: tangram - run: cargo build --verbose --release - - - name: Copy Tangram to path - run: | - mkdir -p ./bin - cp ./tangram/target/release/${{ env.RUST_BINARY_NAME }} ./bin/ - echo "./bin" >> $GITHUB_PATH + - name: Install Tangram + run: curl -fsSL https://tangram.dev/install.sh | sh - name: Tag and push all packages shell: bash From bd5aeadab887b63cb87cd4e8ee71d8297575cf99 Mon Sep 17 00:00:00 2001 From: Ben Lovy Date: Thu, 9 Jan 2025 16:44:49 -0500 Subject: [PATCH 2/5] test --- .github/workflows/tag.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index 74af6ccc..cd961cbd 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -3,6 +3,8 @@ name: Tag Packages on: push: branches: [ "main" ] + pull_request: + branches: [ "main" ] env: BUN_VERSION: 1.1.43 From 3d2e6ddc68bd3c8a71edd5087e5561078ac35b49 Mon Sep 17 00:00:00 2001 From: Ben Lovy Date: Thu, 9 Jan 2025 16:46:57 -0500 Subject: [PATCH 3/5] pipe to bash --- .github/workflows/tag.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index cd961cbd..53b3f0dc 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -29,7 +29,7 @@ jobs: bun-version: ${{ env.BUN_VERSION }} - name: Install Tangram - run: curl -fsSL https://tangram.dev/install.sh | sh + run: curl -fsSL https://tangram.dev/install.sh | bash - name: Tag and push all packages shell: bash From ee3a5b7b2d89f69059b044934720c4b3201fc92c Mon Sep 17 00:00:00 2001 From: Ben Lovy Date: Thu, 9 Jan 2025 16:48:52 -0500 Subject: [PATCH 4/5] fix path --- .github/workflows/tag.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index 53b3f0dc..1ecf28de 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -14,22 +14,18 @@ jobs: runs-on: ubuntu-latest steps: - - name: Check out workflow repository + - name: Check out packages repository uses: actions/checkout@v4 - - - name: Install Rust toolchain - uses: dtolnay/rust-toolchain@stable - with: - components: rustfmt, clippy - - name: Install Bun uses: oven-sh/setup-bun@v1 with: bun-version: ${{ env.BUN_VERSION }} - name: Install Tangram - run: curl -fsSL https://tangram.dev/install.sh | bash + run: | + curl -fsSL https://tangram.dev/install.sh | bash + echo "${HOME}/.tangram/bin" >> $GITHUB_PATH - name: Tag and push all packages shell: bash From c914003bbf075ac4a73a7a4dfac306ddca320b11 Mon Sep 17 00:00:00 2001 From: Ben Lovy Date: Thu, 9 Jan 2025 16:49:47 -0500 Subject: [PATCH 5/5] fixup --- .github/workflows/tag.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/tag.yml b/.github/workflows/tag.yml index 1ecf28de..81122e66 100644 --- a/.github/workflows/tag.yml +++ b/.github/workflows/tag.yml @@ -3,8 +3,6 @@ name: Tag Packages on: push: branches: [ "main" ] - pull_request: - branches: [ "main" ] env: BUN_VERSION: 1.1.43