Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: (RI-4198) Update releases workflows #6

Merged
merged 2 commits into from
Sep 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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