From 17e0a92fc60269a821ec24626ab4ed1ea4839ac4 Mon Sep 17 00:00:00 2001 From: Javier Carrillo Date: Thu, 5 Sep 2024 15:54:25 -0400 Subject: [PATCH 1/2] chore: (RI-4198) Fix compile tasks for releases --- .github/workflows/release.yml | 5 ++++- .github/workflows/s3-upload.yml | 5 ++++- taskfile.yaml | 4 ++-- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 37d5eee..b187631 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,9 +29,12 @@ jobs: - name: ๐Ÿ“ฆ Install package dependencies using lockfile run: bun install --frozen-lockfile + - name: ๐Ÿ”จ Run build + run: bun run build + - name: ๐Ÿ”จ Compile binary for supported platforms run: | - task build + task compile task compress - name: ๐Ÿš€ Release a new version diff --git a/.github/workflows/s3-upload.yml b/.github/workflows/s3-upload.yml index e2708f1..bc45e33 100644 --- a/.github/workflows/s3-upload.yml +++ b/.github/workflows/s3-upload.yml @@ -37,9 +37,12 @@ jobs: - name: ๐Ÿ“ฆ Install package dependencies using lockfile run: bun install --frozen-lockfile + - name: ๐Ÿ”จ Run build + run: bun run build + - name: ๐Ÿ”จ Compile binary for supported platforms run: | - task build + task compile task compress - name: ๐Ÿš€ Upload binaries to S3 diff --git a/taskfile.yaml b/taskfile.yaml index bfd41f8..d779ca6 100644 --- a/taskfile.yaml +++ b/taskfile.yaml @@ -47,7 +47,7 @@ tasks: ENVIRONMENT: '{{.CLI_ARGS}}' } - build: + compile: desc: "Compile binary for supported platforms" cmds: - for: ['linux-x64', 'linux-arm64', 'darwin-arm64', 'darwin-x64'] @@ -58,7 +58,7 @@ tasks: --target=bun-{{.ITEM}} \ --minify \ --sourcemap \ - ./cli.ts \ + ./dist/cli.js \ --outfile ./dist/$PROJECT-{{.ITEM}} compress: From 6cf18539cea6d0d44a7bc0dfa812db587877c802 Mon Sep 17 00:00:00 2001 From: Javier Carrillo Date: Thu, 5 Sep 2024 15:58:02 -0400 Subject: [PATCH 2/2] ci: (RI-4198) Update test action --- .github/workflows/test.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 5dfbc0b..9eabfa4 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -30,9 +30,12 @@ jobs: - name: ๐Ÿ“ฆ Install package dependencies using lockfile run: bun install --frozen-lockfile + - name: ๐Ÿ”จ Run build + run: bun run build + - name: ๐Ÿ”จ Compile binary for supported platforms run: | - task build + task compile task compress - name: ๐Ÿงช Run tests