mirror of
https://github.com/gbdk-2020/gbdk-2020.git
synced 2026-02-20 00:32:21 +01:00
Build: add linux arm64 to Build Examples
This commit is contained in:
18
.github/workflows/gbdk_build_examples.yml
vendored
18
.github/workflows/gbdk_build_examples.yml
vendored
@@ -17,6 +17,8 @@ jobs:
|
||||
include:
|
||||
- os: ubuntu-20.04
|
||||
name: Linux-x64
|
||||
- os: ubuntu-22.04-arm
|
||||
name: Linux-arm64
|
||||
- os: macos-13
|
||||
name: MacOS-x64
|
||||
- os: macos-14
|
||||
@@ -28,12 +30,18 @@ jobs:
|
||||
steps:
|
||||
|
||||
# ==== OS Specific Dependencies ====
|
||||
- name: Linux Depends
|
||||
- name: Linux x86 Depends
|
||||
if: matrix.name == 'Linux-x64'
|
||||
run: |
|
||||
curl -Lo sdcc.tar.gz https://github.com/gbdk-2020/gbdk-2020-sdcc/releases/download/sdcc-patched-gbdk-4.3.0/sdcc-14650-Linux-x64.tar.gz
|
||||
tar xvfz sdcc.tar.gz
|
||||
|
||||
- name: Linux arm64 Depends
|
||||
if: matrix.name == 'Linux-arm64'
|
||||
run: |
|
||||
curl -Lo sdcc.tar.gz https://github.com/gbdk-2020/gbdk-2020-sdcc/releases/download/sdcc-patched-gbdk-4.3.0/sdcc-14650-Linux-arm64.tar.gz
|
||||
tar xvfz sdcc.tar.gz
|
||||
|
||||
- name: MacOS Depends
|
||||
if: matrix.name == 'MacOS-x64'
|
||||
run: |
|
||||
@@ -95,7 +103,7 @@ jobs:
|
||||
# Needs to be in a separate step than build so that setting the environment var takes effect
|
||||
#
|
||||
- name: Pre-Build Linux/MacOS
|
||||
if: (matrix.name == 'Linux-x64') || (matrix.name == 'MacOS-x64') || (matrix.name == 'MacOS-arm64')
|
||||
if: (matrix.name == 'Linux-x64') || (matrix.name == 'Linux-arm64') || (matrix.name == 'MacOS-x64') || (matrix.name == 'MacOS-arm64')
|
||||
shell: bash
|
||||
run: |
|
||||
echo "BUILD_PACKAGE_FILENAME=gbdk-2020-${{ matrix.name }}.tar.gz" >> $GITHUB_ENV
|
||||
@@ -108,7 +116,7 @@ jobs:
|
||||
|
||||
# ==== Builds ====
|
||||
- name: Build GBDK-2020 Linux/MacOS
|
||||
if: (matrix.name == 'Linux-x64') || (matrix.name == 'MacOS-x64') || (matrix.name == 'MacOS-arm64')
|
||||
if: (matrix.name == 'Linux-x64') || (matrix.name == 'Linux-arm64') || (matrix.name == 'MacOS-x64') || (matrix.name == 'MacOS-arm64')
|
||||
shell: bash
|
||||
run: |
|
||||
export SDCCDIR=`pwd`/sdcc
|
||||
@@ -151,7 +159,7 @@ jobs:
|
||||
|
||||
# ==== Packaging ====
|
||||
- name: Package build Linux/MacOS
|
||||
if: (matrix.name == 'Linux-x64') || (matrix.name == 'MacOS-x64') || (matrix.name == 'MacOS-arm64')
|
||||
if: (matrix.name == 'Linux-x64') || (matrix.name == 'Linux-arm64') || (matrix.name == 'MacOS-x64') || (matrix.name == 'MacOS-arm64')
|
||||
shell: bash
|
||||
run: |
|
||||
cd gbdk-2020
|
||||
@@ -173,7 +181,7 @@ jobs:
|
||||
cd ..
|
||||
|
||||
- name: Store build
|
||||
if: (matrix.name == 'Linux-x64') || (matrix.name == 'MacOS-x64') || (matrix.name == 'MacOS-arm64') || ('Windows-x64') || ('Windows-x32')
|
||||
if: (matrix.name == 'Linux-x64') || (matrix.name == 'Linux-arm64') || (matrix.name == 'MacOS-x64') || (matrix.name == 'MacOS-arm64') || ('Windows-x64') || ('Windows-x32')
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: ${{ matrix.name }} build
|
||||
|
||||
Reference in New Issue
Block a user