Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 28 additions & 19 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,20 @@ jobs:
matrix:
include:
- os: ubuntu-22.04
name: Linux-x64
- os: macos-11
name: Linux-Wincross-x64
- os: ubuntu-22.04-arm
name: Linux-arm64
- os: macos-14
name: MacOS-arm64
- os: macos-13
name: MacOS-x64
steps:



# ==== OS Specific Dependencies ====
- name: Linux Depends
if: matrix.name == 'Linux-x64'
if: matrix.name == 'Linux-Wincross-x64'
# For Windows crossbuild
# Use "x64" for 64 bit (x86_64-w64-mingw32-gcc), "x86" for 32 bit (i686-w64-mingw32-gcc)
uses: egor-tensin/setup-mingw@v2
Expand All @@ -40,16 +44,32 @@ jobs:
submodules: false

# ==== Builds ====
- name: Build MacOS
- name: Build Mac x64
if: (matrix.name == 'MacOS-x64')
shell: bash
run: |
cd gbtoolsid-root
make macoszip
cd ..

- name: Build Linux
if: (matrix.name == 'Linux-x64')
- name: Build Mac Arm64
if: (matrix.name == 'MacOS-arm64')
shell: bash
run: |
cd gbtoolsid-root
make macos_armzip
cd ..

- name: Build Linux Arm64
if: (matrix.name == 'Linux-arm64')
shell: bash
run: |
cd gbtoolsid-root
make linux_armzip
cd ..

- name: Build Linux + WinCross x64
if: (matrix.name == 'Linux-Wincross-x64')
shell: bash
run: |
cd gbtoolsid-root
Expand All @@ -59,8 +79,7 @@ jobs:
cd ..

# ==== Packaging ====
- name: Package build Linux/MacOS
if: (matrix.name == 'Linux-x64') || (matrix.name == 'MacOS-x64')
- name: Package build
shell: bash
run: |
cd gbtoolsid-root
Expand All @@ -70,19 +89,9 @@ jobs:
cd ..

- name: Store build
if: (matrix.name == 'Linux-x64')
uses: actions/upload-artifact@v4
with:
name: gbtoolsid build Linux & Windows
# path: gbtoolsid-root/bin/${{ env.BUILD_PACKAGE_FILENAME }}
path: gbtoolsid-root/bin
# retention-days: 30

- name: Store build
if: (matrix.name == 'MacOS-x64')
uses: actions/upload-artifact@v4
with:
name: gbtoolsid build MacOS
name: gbtoolsid build ${{ matrix.name }}
# path: gbtoolsid-root/bin/${{ env.BUILD_PACKAGE_FILENAME }}
path: gbtoolsid-root/bin
# retention-days: 30
Expand Down
5 changes: 5 additions & 0 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
Changelog
=========

# Version 1.5.1
- Detect GBSDK
- Improve GBStudio detection and version numbers
- Linux and Mac Arm64 builds

# Version 1.5.0
- Detect GBDK 4.3.0+
- Update GBStudio 3.2.0 due to using an interim build between GBDK 4.2.0 and 4.3.0
Expand Down
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -53,13 +53,24 @@ macoszip: macos
zip -j $(BIN)_macos.zip $(BIN) Changelog.md README.md
mv $(BIN)_macos.zip bin

macos_armzip: macos
mkdir -p bin
# -j discards (junks) path to file
zip -j $(BIN)_macos_arm.zip $(BIN) Changelog.md README.md
mv $(BIN)_macos_arm.zip bin

linuxzip: linux
mkdir -p bin
# -j discards (junks) path to file
zip -j $(BIN)_linux.zip $(BIN) Changelog.md README.md
mv $(BIN)_linux.zip bin

linux_armzip: linux
mkdir -p bin
# -j discards (junks) path to file
zip -j $(BIN)_linux_arm.zip $(BIN) Changelog.md README.md
mv $(BIN)_linux_arm.zip bin

wincrosszip: wincross
mkdir -p bin
# -j discards (junks) path to file
Expand Down