-
It seems that this error has occurred before #259 and was fixed in this PR #258, but in version 0.26.0, the binary file for GitHub actions error info
My action file name: Release
on:
push:
tags:
- "*"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v1
- name: Use Golang
uses: actions/setup-go@v1
with:
go-version: "1.20"
- name: Build with xgo
uses: crazy-max/ghaction-xgo@v1
with:
xgo_version: latest
go_version: ${{ matrix.go_version }}
dest: build
prefix: hack-browser-data
pkg: cmd/hack-browser-data
targets: windows/amd64,windows/386,linux/386,linux/amd64,linux/arm,linux/arm64,darwin/amd64
# targets: windows/amd64,windows/386,darwin/amd64,linux/arm
v: true
x: false
race: false
ldflags: -s -w
buildmode: default
... |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
Looks good on ci: https://github.com/crazy-max/ghaction-xgo/actions/runs/4391747486/jobs/7691095244#step:3:16 Can you remove |
Beta Was this translation helpful? Give feedback.
-
After remove name: Release
on:
push:
tags:
- "*"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v1
- name: Use Golang
uses: actions/setup-go@v1
with:
go-version: "1.20"
- name: Build with xgo
uses: crazy-max/ghaction-xgo@v1
with:
go_version: ${{ matrix.go_version }}
dest: build
prefix: hack-browser-data
pkg: cmd/hack-browser-data
targets: windows/amd64,windows/386,linux/386,linux/amd64,linux/arm,linux/arm64,darwin/amd64
# targets: windows/amd64,windows/386,darwin/amd64,linux/arm
v: true
x: false
race: false
ldflags: -s -w
buildmode: default
And the log is same
It seems that there is no release related to linux_x86_64 under tag v0.26.0, while there is one for linux_x86_64 under tag v0.23.0. |
Beta Was this translation helpful? Give feedback.
-
Oh that's because you're still using v1. Set |
Beta Was this translation helpful? Give feedback.
-
Thx! upgrade v2 works fine for me. |
Beta Was this translation helpful? Give feedback.
Oh that's because you're still using v1. Set
crazy-max/ghaction-xgo@v2
instead.