action:直接使用gcc-aarch64-linux-gnu试图编译cgo linux arm64

This commit is contained in:
e1732a364fed
2000-01-01 00:00:00 +00:00
parent a9b3ee3952
commit be773e7de3

View File

@@ -16,27 +16,18 @@ jobs:
with:
ref: ${{ github.event.inputs.tagName }}
# https://github.com/marketplace/actions/run-on-architecture
- uses: uraimo/run-on-arch-action@v2
name: Run commands
id: runcmd
- name: Set up Go
uses: actions/setup-go@v2
with:
arch: aarch64
distro: ubuntu_latest
go-version: 1.19
githubToken: ${{ github.token }}
install: |
apt-get update -q -y
apt-get install -q -y build-essential libgtk-3-dev wget
wget https://go.dev/dl/go1.19.4.linux-arm64.tar.gz
tar -C /usr/local -xzf go1.19.4.linux-arm64.tar.gz
echo "/usr/local/go/bin" >> $GITHUB_PATH
run: |
uname -a
echo ::set-output name=uname::$(uname -a)
cd cmd/verysimple/ && make -f Makefile_r_vsc PACKNAME=vs_gui_ubuntu_arm64 BUILD_VERSION=${{ github.event.inputs.tagName }} && touch -mt $(date +%Y01010000) *.tar.xz
- name: Run commands
run: |
apt-get update -q -y
apt-get install -q -y build-essential libgtk-3-dev wget gcc-aarch64-linux-gnu
echo "CC=aarch64-linux-gnu-gcc" >> $GITHUB_ENV
CC="aarch64-linux-gnu-gcc"
cd cmd/verysimple/ && make -f Makefile_r_vsc PACKNAME=vs_gui_ubuntu_arm64 BUILD_VERSION=${{ github.event.inputs.tagName }} && touch -mt $(date +%Y01010000) *.tar.xz
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2