Skip to content

Commit

Permalink
Merge pull request #6 from gbh-tech/chore-RI-4198-fix-compile-tesk-re…
Browse files Browse the repository at this point in the history
…lease-it

feat!: (RI-4198) Update releases workflows
  • Loading branch information
javiercm1410 authored Sep 5, 2024
2 parents 5bf4252 + 6cf1853 commit 8b7a1ee
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/s3-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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']
Expand All @@ -58,7 +58,7 @@ tasks:
--target=bun-{{.ITEM}} \
--minify \
--sourcemap \
./cli.ts \
./dist/cli.js \
--outfile ./dist/$PROJECT-{{.ITEM}}
compress:
Expand Down

0 comments on commit 8b7a1ee

Please sign in to comment.