Skip to content

Commit

Permalink
Add linux-arm64 build to github actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismaltby committed Jan 28, 2025
1 parent 8442a2e commit d80d593
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 1 deletion.
13 changes: 13 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ jobs:
- name: linux
label: Linux
os: ubuntu-latest
- name: linux-arm64
label: Linux-arm64
os: ubuntu-22.04-arm

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -137,6 +140,16 @@ jobs:
mv ./out/make/rpm/x64/*.rpm ./out/keep/gb-studio-${GITHUB_REF##*/}-linux_x86_64.rpm
mv ./out/make/AppImage/x64/*.AppImage ./out/keep/gb-studio-${GITHUB_REF##*/}-linux_x86_64.AppImage
- name: Build Linux
if: matrix.name == 'linux-arm64'
run: |
yarn fetch-deps -- --arch=linux-arm64
yarn make:linux
mkdir -p ./out/keep
mv ./out/make/deb/arm64/*.deb ./out/keep/gb-studio-${GITHUB_REF##*/}-linux_arm64.deb
mv ./out/make/rpm/arm64/*.rpm ./out/keep/gb-studio-${GITHUB_REF##*/}-linux_arm64.rpm
mv ./out/make/AppImage/arm64/*.AppImage ./out/keep/gb-studio-${GITHUB_REF##*/}-linux_arm64.AppImage
- name: Build Win32
if: matrix.name == 'win32'
run: |
Expand Down
1 change: 1 addition & 0 deletions buildTools/linux-arm64/tools_version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
4.2.0-v0
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"make:mac": "cross-env NODE_ENV=production electron-forge make --arch=arm64 --platform=darwin",
"make:mac-intel": "cross-env NODE_ENV=production electron-forge make --arch=x64 --platform=darwin",
"make:linux": "cross-env NODE_ENV=production electron-forge make --arch=x64 --platform=linux",
"make:linux-arm64": "cross-env NODE_ENV=production electron-forge make --arch=arm64 --platform=linux-arm64",
"make": "cross-env NODE_ENV=production electron-forge make",
"make:all": "cross-env NODE_ENV=production run-s make:mac make:mac:intel make:win make:win32 make:linux",
"publish": "electron-forge publish",
Expand Down
10 changes: 9 additions & 1 deletion src/scripts/fetchDependencies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ const dependencies = {
type: "targz",
},
},
"linux-arm64": {
gbdk: {
url: "https://github.com/gbdk-2020/gbdk-2020/releases/download/gbdk-next/gbdk-linux-arm64.tar.gz",
type: "targz",
},
},
"win32-ia32": {
gbdk: {
url: "https://github.com/gbdk-2020/gbdk-2020/releases/download/4.3.0/gbdk-win32.zip",
Expand Down Expand Up @@ -95,4 +101,6 @@ const main = async () => {
}
};

main();
main().catch((e) => {
console.error("ERROR", e);
});

0 comments on commit d80d593

Please sign in to comment.