Skip to content

Commit 620e848

Browse files
committed
更新 workflow
1 parent 464a029 commit 620e848

File tree

1 file changed

+3
-35
lines changed

1 file changed

+3
-35
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -24,46 +24,14 @@ jobs:
2424
fail-fast: false
2525
matrix:
2626
include:
27-
- { os: ubuntu-20.04, target: linux, platform: linux-x64, container: 'ubuntu:18.04' }
28-
- { os: ubuntu-20.04, target: linux, platform: linux-arm64, container: 'ubuntu:18.04' }
27+
- { os: ubuntu-20.04, target: linux, platform: linux-x64 }
28+
#- { os: ubuntu-20.04, target: linux, platform: linux-arm64 }
2929
- { os: macos-11, target: darwin, platform: darwin-x64 }
3030
- { os: macos-11, target: darwin, platform: darwin-arm64 }
3131
- { os: windows-latest, target: windows, platform: win32-x64 }
3232
runs-on: ${{ matrix.os }}
33-
container:
34-
image: ${{ matrix.container }}
3533
steps:
36-
- name: Prepare container
37-
if: ${{ matrix.target == 'linux' }}
38-
run: |
39-
apt-get update
40-
apt-get install -y software-properties-common
41-
add-apt-repository -y ppa:ubuntu-toolchain-r/test # For gcc-9 and g++-9
42-
add-apt-repository -y ppa:git-core/ppa # For git>=2.18.
43-
apt-get update
44-
apt-get install -y sudo git gcc-9 g++-9
45-
46-
apt-get install -y curl
47-
curl -sL https://deb.nodesource.com/setup_14.x -o /tmp/nodesource_setup.sh # For nodejs
48-
sudo bash /tmp/nodesource_setup.sh
49-
cd ~
50-
curl -sL https://deb.nodesource.com/setup_16.x -o /tmp/nodesource_setup.sh
51-
sudo bash /tmp/nodesource_setup.sh
52-
sudo apt install nodejs
53-
54-
- name: Install aarch64-linux-gnu
55-
if: ${{ matrix.platform == 'linux-arm64' }}
56-
run: |
57-
apt-get update
58-
apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
59-
60-
- name: Prepare container
61-
if: ${{ matrix.target == 'linux' }}
62-
run: |
63-
update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 100
64-
update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-9 100
65-
66-
- uses: actions/checkout@v3
34+
- uses: actions/checkout@v4
6735
with:
6836
submodules: recursive
6937

0 commit comments

Comments
 (0)