Skip to content

Commit 2d0424d

Browse files
author
Christopher Liu
committed
Remove patch for non x86 archs
1 parent 4a8dac5 commit 2d0424d

File tree

1 file changed

+38
-78
lines changed

1 file changed

+38
-78
lines changed

.github/workflows/continuous.yml

Lines changed: 38 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-18.04
1515
steps:
1616
- uses: actions/checkout@v2
17-
- uses: actions/setup-node@v2.1.5
17+
- uses: actions/setup-node@v1
1818
with:
1919
node-version: 12
2020

@@ -118,46 +118,26 @@ jobs:
118118
runs-on: ubuntu-18.04
119119
steps:
120120
- uses: actions/checkout@v2
121-
- uses: actions/setup-node@v2.1.5
121+
- uses: actions/setup-node@v1
122122
with:
123-
node-version: '12'
124-
architecture: 'arm64'
125-
- uses: uraimo/[email protected]
126-
name: Run commands
127-
id: runcmd
128-
with:
129-
arch: aarch64
130-
distro: ubuntu18.04
131-
132-
run: |
133-
cd src
134-
npm i
135-
git clone https://github.com/sugarlabs/musicblocks
136-
sh ./patch.sh
137-
npx electron-builder --arm64 --linux AppImage --publish never
123+
node-version: 12
124+
125+
- run: |
126+
cd src
127+
npm i
128+
git clone https://github.com/sugarlabs/musicblocks
129+
sh ./patch.sh
130+
npx electron-builder --arm64 --linux AppImage --publish never
138131
139132
140-
- uses: uraimo/[email protected]
141-
name: Patch AppImage aaarch64
142-
with:
143-
arch: aarch64
144-
distro: ubuntu18.04
145-
146-
run: |
147-
cd src
148-
mkdir -p dist/appimage
149-
cd dist/
150-
./*.AppImage --appimage-extract
151-
cp linux-arm64-unpacked/resources/app.asar squashfs-root/resources/.
152-
wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-aarch64.AppImage
153-
chmod +x appimagetool-aarch64.AppImage
154-
rm Musicblocks*.AppImage
155-
./appimagetool-aarch64.AppImage squashfs-root -n
156-
ls
157-
rm -rf squashfs-root
158-
mv Musicblocks*.AppImage appimage/.
159-
chmod +x appimage/*.AppImage
160-
cd ..
133+
- name: Patch AppImage aarch64
134+
run: |
135+
cd src
136+
mkdir -p dist/appimage
137+
cd dist/
138+
mv Musicblocks*.AppImage appimage/.
139+
chmod +x appimage/*.AppImage
140+
cd ..
161141
162142
- name: Upload AppImage aarch64
163143
uses: actions/[email protected]
@@ -170,45 +150,25 @@ jobs:
170150
runs-on: ubuntu-18.04
171151
steps:
172152
- uses: actions/checkout@v2
173-
- uses: actions/[email protected]
174-
with:
175-
node-version: '12'
176-
architecture: 'armv7l'
177-
- uses: uraimo/[email protected]
178-
name: Run commands
179-
id: runcmd
153+
- uses: actions/setup-node@v1
180154
with:
181-
arch: armv7
182-
distro: ubuntu18.04
183-
184-
run: |
185-
cd src
186-
npm i
187-
git clone https://github.com/sugarlabs/musicblocks
188-
sh ./patch.sh
189-
npx electron-builder --armv7l --linux AppImage --publish never
190-
191-
- uses: uraimo/[email protected]
192-
name: Patch AppImage armv7
193-
with:
194-
arch: aarch64
195-
distro: ubuntu18.04
196-
197-
run: |
198-
cd src
199-
mkdir -p dist/appimage
200-
cd dist/
201-
./*.AppImage --appimage-extract
202-
cp linux-armv7l-unpacked/resources/app.asar squashfs-root/resources/.
203-
wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-armhf.AppImage
204-
chmod +x appimagetool-armhf.AppImage
205-
rm Musicblocks*.AppImage
206-
./appimagetool-armhf.AppImage squashfs-root -n
207-
ls
208-
rm -rf squashfs-root
209-
mv Musicblocks*.AppImage appimage/.
210-
chmod +x appimage/*.AppImage
211-
cd ..
155+
node-version: 12
156+
157+
- run: |
158+
cd src
159+
npm i
160+
git clone https://github.com/sugarlabs/musicblocks
161+
sh ./patch.sh
162+
npx electron-builder --arm64 --linux AppImage --publish never
163+
164+
- name: Patch AppImage armv7
165+
run: |
166+
cd src
167+
mkdir -p dist/appimage
168+
cd dist/
169+
mv Musicblocks*.AppImage appimage/.
170+
chmod +x appimage/*.AppImage
171+
cd ..
212172
213173
- name: Upload AppImage armv7
214174
uses: actions/[email protected]
@@ -221,7 +181,7 @@ jobs:
221181
runs-on: windows-latest
222182
steps:
223183
- uses: actions/checkout@v2
224-
- uses: actions/setup-node@v2.1.5
184+
- uses: actions/setup-node@v1
225185
with:
226186
node-version: 12
227187
- name: Install npm dependencies
@@ -259,7 +219,7 @@ jobs:
259219
runs-on: macos-latest
260220
steps:
261221
- uses: actions/checkout@v2
262-
- uses: actions/setup-node@v2.1.5
222+
- uses: actions/setup-node@v1
263223
with:
264224
node-version: 12
265225

0 commit comments

Comments
 (0)