Skip to content

Commit

Permalink
ci: (RI-4198) Test release with container
Browse files Browse the repository at this point in the history
  • Loading branch information
javiercm1410 committed Sep 5, 2024
1 parent ffea99c commit f9665d7
Showing 1 changed file with 28 additions and 5 deletions.
33 changes: 28 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,14 @@ on:

jobs:
release:
runs-on: ARM64
runs-on: ubuntu-latest
services:
bun:
image: oven/bun:alpine
options: >
--volume /home/runner/work/${{ github.repository }}:/workspace
--workdir /workspace
steps:
- name: πŸ’» Checkout current pull-request revision code
uses: actions/checkout@v4
Expand All @@ -18,8 +25,8 @@ jobs:
with:
bun-version: latest

- name: πŸ”΅ Install Task
uses: arduino/setup-task@v2
# - name: πŸ”΅ Install Task
# uses: arduino/setup-task@v2

- name: πŸ’Ό Configure Git user
run: |
Expand All @@ -28,14 +35,30 @@ jobs:
- name: πŸ“¦ Install package dependencies using lockfile
run: bun install --frozen-lockfile
- name: πŸ“¦ Install package dependencies using lockfile
run: docker exec
-t bun
bun install -g @go-task/cli
bun install --frozen-lockfile

- name: πŸ”¨ Run build
run: bun run build
run: docker exec
-t bun
bun run build

- name: πŸ”¨ Compile binary for supported platforms
run: |
run: docker exec
-t bun
task compile
task compress


- name: πŸ”¨ Compile binary for supported platforms
run: docker exec
-t bun
cp -r
/workspace/dist
./dist

- name: πŸš€ Release a new version
run: bun release-it --ci
Expand Down

0 comments on commit f9665d7

Please sign in to comment.