Skip to content

Commit

Permalink
Fix build pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
k1LoW committed Mar 27, 2024
1 parent ecf34bb commit 53ed3ae
Showing 1 changed file with 15 additions and 41 deletions.
56 changes: 15 additions & 41 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,53 +1,27 @@
name: release

on:
push:
tags:
- v*.*.*
pull_request:

jobs:
release-linux:
name: Release for Linux
ubuntu-arm64:
name: Build package for Ubuntu arm64
runs-on: ubuntu-latest
steps:
- name: Check out source code
uses: actions/checkout@v3

- name: Set up Go
uses: actions/setup-go@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
with:
go-version: 1.18

- name: Build
run: |
make build_linux
tree dist/
- name: Upload assets
run: |
make release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

release-darwin:
name: Release for macOS
runs-on: macos-latest
steps:
platforms: arm64

- name: Check out source code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v3
- uses: docker://ubuntu:latest
with:
go-version: 1.18

- name: Build
run: |
make build_darwin
- name: Upload assets
run: |
make release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
entrypoint: ""
args: uname -a

- uses: docker://ubuntu:latest
with:
entrypoint: ""
args: ls

0 comments on commit 53ed3ae

Please sign in to comment.