Skip to content

Commit

Permalink
ci: (RI-4198) Update build and compress tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
javiercm1410 committed Sep 4, 2024
1 parent 16c9588 commit 2787f22
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 11 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,9 @@ jobs:
run: bun install --frozen-lockfile

- name: 🔨 Compile binary for supported platforms
run: task build-and-compress
run: |
task build
task compress
- name: 🚀 Run new version for production
run: npx release-it --ci
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/s3-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,10 @@ 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-and-compress
run: |
task build
task compress
- name: 🚀 Upload binaries to S3
run: aws s3 cp ./dist ${BUCKET}/${NAME} --acl public-read
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ jobs:

- name: 🔨 Compile binary for supported platforms
run: |
mkdir -p ./dist/
task build-and-compress
task build
task compress
- name: 🧪 Run tests
run: bun run test
4 changes: 0 additions & 4 deletions taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,3 @@ tasks:
cmd: |
echo "Compressing {{.ITEM}} binary..."
tar -czvf ./dist/$PROJECT-{{.ITEM}}.tar.gz -C ./dist/ $PROJECT-{{.ITEM}}
build-and-compress:
desc: "Build and compress binaries for all platforms"
deps: [build, compress]

0 comments on commit 2787f22

Please sign in to comment.