mirror of
https://github.com/e1732a364fed/v2ray_simple.git
synced 2025-12-24 13:27:56 +08:00
action:直接使用gcc-aarch64-linux-gnu试图编译cgo linux arm64
This commit is contained in:
29
.github/workflows/build_release_extra.yml
vendored
29
.github/workflows/build_release_extra.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user