@@ -129,19 +129,32 @@ jobs:
129129 - name : Install Node.js v18
130130 uses : actions/setup-node@v3
131131 with :
132- node-version : " 18"
132+ node-version : " 18.15.0 "
133133
134134 - name : Install nfpm
135135 run : |
136136 mkdir -p ~/.local/bin
137137 curl -sSfL https://github.com/goreleaser/nfpm/releases/download/v2.3.1/nfpm_2.3.1_`uname -s`_`uname -m`.tar.gz | tar -C ~/.local/bin -zxv nfpm
138138 echo "$HOME/.local/bin" >> $GITHUB_PATH
139139
140- - name : Install cross-compiler and system dependencies
140+ - name : Install cross-compiler and system dependencies (arm64)
141+ if : ${{ matrix.arch != 'armv7l' }}
141142 run : sudo apt update && sudo apt install -y $PACKAGE libkrb5-dev
142143 env :
143144 PACKAGE : ${{ format('g++-{0}', matrix.prefix) }}
144145
146+ - name : Install cross-compiler and system dependencies (armv7l)
147+ if : ${{ matrix.arch == 'armv7l' }}
148+ run : |
149+ sudo sed -i "s/^deb/deb [arch=amd64,i386]/g" /etc/apt/sources.list
150+ echo "deb [arch=arm64,armhf] http://ports.ubuntu.com/ $(lsb_release -s -c) main universe multiverse restricted" | sudo tee -a /etc/apt/sources.list
151+ echo "deb [arch=arm64,armhf] http://ports.ubuntu.com/ $(lsb_release -s -c)-updates main universe multiverse restricted" | sudo tee -a /etc/apt/sources.list
152+ sudo dpkg --add-architecture armhf
153+ sudo apt update
154+ sudo apt install -y $PACKAGE libkrb5-dev:armhf
155+ env :
156+ PACKAGE : ${{ format('g++-{0}', matrix.prefix) }}
157+ 145158 - name : Download npm package
146159 uses : actions/download-artifact@v3
147160 with :
0 commit comments