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 01c145b
Showing 1 changed file with 15 additions and 40 deletions.
55 changes: 15 additions & 40 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,53 +1,28 @@
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 }}
platforms: arm64

release-darwin:
name: Release for macOS
runs-on: macos-latest
steps:
- name: Check out source code
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v3
- uses: k1LoW/run-on-container@main
with:
go-version: 1.18

- name: Build
run: |
make build_darwin
- name: Upload assets
run: |
make release
run: |
uname -a
ls
image: ubuntu:latest
platform: linux/arm64
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

HELLO: world

0 comments on commit 01c145b

Please sign in to comment.