mirror of
https://gitclone.com/github.com/MetaCubeX/Clash.Meta
synced 2024-11-14 05:11:17 +08:00
chore: Update workflow
This commit is contained in:
parent
092e53586e
commit
f0bc68585a
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
@ -96,17 +96,15 @@ jobs:
|
||||
if: ${{ matrix.jobs.goarch == 'loong64' && matrix.jobs.abi == '1' }}
|
||||
run: |
|
||||
wget -q https://github.com/xishang0128/loongarch64-golang/releases/download/1.21.5/go1.21.5.linux-amd64-abi1.tar.gz
|
||||
sudo tar zxf go1.21.5.linux-amd64-abi1.tar.gz
|
||||
sudo rm -rf /opt/hostedtoolcache/go/1.20.14/x64/*
|
||||
sudo cp -r go/* /opt/hostedtoolcache/go/1.20.14/x64
|
||||
sudo tar zxf go1.21.5.linux-amd64-abi1.tar.gz -C /usr/local
|
||||
echo "/usr/local/go/bin" >> $GITHUB_PATH
|
||||
|
||||
- name: Set up Go1.21 loongarch abi2
|
||||
if: ${{ matrix.jobs.goarch == 'loong64' && matrix.jobs.abi == '2' }}
|
||||
run: |
|
||||
wget -q https://github.com/xishang0128/loongarch64-golang/releases/download/1.21.5/go1.21.5.linux-amd64-abi2.tar.gz
|
||||
sudo tar zxf go1.21.5.linux-amd64-abi2.tar.gz
|
||||
sudo rm -rf /opt/hostedtoolcache/go/1.20.14/x64/*
|
||||
sudo cp -r go/* /opt/hostedtoolcache/go/1.20.14/x64
|
||||
sudo tar zxf go1.21.5.linux-amd64-abi2.tar.gz -C /usr/local
|
||||
echo "/usr/local/go/bin" >> $GITHUB_PATH
|
||||
|
||||
- name: Set variables
|
||||
if: ${{github.ref_name=='Alpha'}}
|
||||
@ -166,7 +164,7 @@ jobs:
|
||||
if: ${{ matrix.jobs.goos == 'linux' && !contains(matrix.jobs.goarch, 'mips') }}
|
||||
run: |
|
||||
sudo apt-get install dpkg
|
||||
if [ "${{matrix.jobs.goarch}}" = "loong64" ]; then
|
||||
if [ "${{matrix.jobs.abi}}" = "1" ]; then
|
||||
ARCH=loongarch64
|
||||
else
|
||||
ARCH=${{matrix.jobs.goarch}}
|
||||
|
Loading…
Reference in New Issue
Block a user