mirror of
https://github.com/LIV2/amiberry.git
synced 2025-12-05 22:22:44 +00:00
486 lines
15 KiB
YAML
486 lines
15 KiB
YAML
name: C/C++ CI
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches: [ master ]
|
|
tags:
|
|
- v[1-9]+.[0-9]
|
|
|
|
jobs:
|
|
|
|
build-rpi3-dmx-32bit-rpios:
|
|
runs-on: [self-hosted, Linux, ARM, rpios32, dmx]
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
submodules: 'true'
|
|
- name: make capsimg
|
|
run: make capsimg
|
|
- name: make for RPIOS RPI3-DMX 32-bit
|
|
run: make -j4 PLATFORM=rpi3
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
name: amiberry-rpi3-dmx-32bit-rpios
|
|
path: |
|
|
amiberry
|
|
capsimg.so
|
|
abr/**
|
|
conf/**
|
|
controllers/**
|
|
data/**
|
|
kickstarts/**
|
|
savestates/**
|
|
screenshots/**
|
|
whdboot/**
|
|
- name: Get tag
|
|
if: github.ref_type == 'tag'
|
|
id: tag
|
|
uses: dawidd6/action-get-tag@v1
|
|
with:
|
|
# Optionally strip `v` prefix
|
|
strip_v: false
|
|
- name: ZIP binaries
|
|
if: github.ref_type == 'tag'
|
|
run: zip -r amiberry-${{ steps.tag.outputs.tag }}-rpi3-dmx-32bit-rpios.zip amiberry capsimg.so abr conf controllers data kickstarts savestates screenshots whdboot
|
|
- name: Create Changelog
|
|
if: github.ref_type == 'tag'
|
|
id: changelog
|
|
uses: loopwerk/tag-changelog@v1
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
config_file: .github/tag-changelog-config.js
|
|
- name: Create Release
|
|
if: github.ref_type == 'tag'
|
|
uses: ncipollo/release-action@v1
|
|
with:
|
|
allowUpdates: true
|
|
omitBodyDuringUpdate: true
|
|
body: ${{ steps.changelog.outputs.changes }}
|
|
artifacts: |
|
|
amiberry-${{ steps.tag.outputs.tag }}-rpi3-dmx-32bit-rpios.zip
|
|
|
|
build-rpi3-sdl2-32bit-debian:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
submodules: 'true'
|
|
- name: Run the build process with Docker
|
|
uses: addnab/docker-run-action@v3
|
|
with:
|
|
image: midwan/amiberry-docker-armhf:latest
|
|
options: -v ${{ github.workspace }}:/build
|
|
run: |
|
|
make capsimg
|
|
make -j8 PLATFORM=rpi3-sdl2
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
name: amiberry-rpi3-sdl2-32bit-debian
|
|
path: |
|
|
amiberry
|
|
capsimg.so
|
|
abr/**
|
|
conf/**
|
|
controllers/**
|
|
data/**
|
|
kickstarts/**
|
|
savestates/**
|
|
screenshots/**
|
|
whdboot/**
|
|
- name: Get tag
|
|
if: github.ref_type == 'tag'
|
|
id: tag
|
|
uses: dawidd6/action-get-tag@v1
|
|
with:
|
|
# Optionally strip `v` prefix
|
|
strip_v: false
|
|
- name: ZIP binaries
|
|
if: github.ref_type == 'tag'
|
|
run: zip -r amiberry-${{ steps.tag.outputs.tag }}-rpi3-sdl2-32bit-debian.zip amiberry capsimg.so abr conf controllers data kickstarts savestates screenshots whdboot
|
|
- name: Create Changelog
|
|
if: github.ref_type == 'tag'
|
|
id: changelog
|
|
uses: loopwerk/tag-changelog@v1
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
config_file: .github/tag-changelog-config.js
|
|
- name: Create Release
|
|
if: github.ref_type == 'tag'
|
|
uses: ncipollo/release-action@v1
|
|
with:
|
|
allowUpdates: true
|
|
omitBodyDuringUpdate: true
|
|
body: ${{ steps.changelog.outputs.changes }}
|
|
artifacts: |
|
|
amiberry-${{ steps.tag.outputs.tag }}-rpi3-sdl2-32bit-debian.zip
|
|
|
|
build-rpi4-dmx-32bit-rpios:
|
|
runs-on: [self-hosted, Linux, ARM, rpios32, dmx]
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
submodules: 'true'
|
|
- name: make capsimg
|
|
run: make capsimg
|
|
- name: make for RPIOS RPI4-DMX 32-bit
|
|
run: make -j4 PLATFORM=rpi4
|
|
- name: copy binary locally
|
|
run: cp amiberry ~/projects/amiberry/amiberry-dmx
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
name: amiberry-rpi4-dmx-32bit-rpios
|
|
path: |
|
|
amiberry
|
|
capsimg.so
|
|
abr/**
|
|
conf/**
|
|
controllers/**
|
|
data/**
|
|
kickstarts/**
|
|
savestates/**
|
|
screenshots/**
|
|
whdboot/**
|
|
- name: Get tag
|
|
if: github.ref_type == 'tag'
|
|
id: tag
|
|
uses: dawidd6/action-get-tag@v1
|
|
with:
|
|
# Optionally strip `v` prefix
|
|
strip_v: false
|
|
- name: ZIP binaries
|
|
if: github.ref_type == 'tag'
|
|
run: zip -r amiberry-${{ steps.tag.outputs.tag }}-rpi4-dmx-32bit-rpios.zip amiberry capsimg.so abr conf controllers data kickstarts savestates screenshots whdboot
|
|
- name: Create Changelog
|
|
if: github.ref_type == 'tag'
|
|
id: changelog
|
|
uses: loopwerk/tag-changelog@v1
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
config_file: .github/tag-changelog-config.js
|
|
- name: Create Release
|
|
if: github.ref_type == 'tag'
|
|
uses: ncipollo/release-action@v1
|
|
with:
|
|
allowUpdates: true
|
|
omitBodyDuringUpdate: true
|
|
body: ${{ steps.changelog.outputs.changes }}
|
|
artifacts: |
|
|
amiberry-${{ steps.tag.outputs.tag }}-rpi4-dmx-32bit-rpios.zip
|
|
|
|
build-rpi4-sdl2-32bit-debian:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
submodules: 'true'
|
|
- name: Run the build process with Docker
|
|
uses: addnab/docker-run-action@v3
|
|
with:
|
|
image: midwan/amiberry-docker-armhf:latest
|
|
options: -v ${{ github.workspace }}:/build
|
|
run: |
|
|
make capsimg
|
|
make -j8 PLATFORM=rpi4-sdl2
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
name: amiberry-rpi4-sdl2-32bit-debian
|
|
path: |
|
|
amiberry
|
|
capsimg.so
|
|
abr/**
|
|
conf/**
|
|
controllers/**
|
|
data/**
|
|
kickstarts/**
|
|
savestates/**
|
|
screenshots/**
|
|
whdboot/**
|
|
- name: Get tag
|
|
if: github.ref_type == 'tag'
|
|
id: tag
|
|
uses: dawidd6/action-get-tag@v1
|
|
with:
|
|
# Optionally strip `v` prefix
|
|
strip_v: false
|
|
- name: ZIP binaries
|
|
if: github.ref_type == 'tag'
|
|
run: zip -r amiberry-${{ steps.tag.outputs.tag }}-rpi4-sdl2-32bit-debian.zip amiberry capsimg.so abr conf controllers data kickstarts savestates screenshots whdboot
|
|
- name: Create Changelog
|
|
if: github.ref_type == 'tag'
|
|
id: changelog
|
|
uses: loopwerk/tag-changelog@v1
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
config_file: .github/tag-changelog-config.js
|
|
- name: Create Release
|
|
if: github.ref_type == 'tag'
|
|
uses: ncipollo/release-action@v1
|
|
with:
|
|
allowUpdates: true
|
|
omitBodyDuringUpdate: true
|
|
body: ${{ steps.changelog.outputs.changes }}
|
|
artifacts: |
|
|
amiberry-${{ steps.tag.outputs.tag }}-rpi4-sdl2-32bit-debian.zip
|
|
|
|
build-rpi3-sdl2-64bit-debian:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
submodules: 'true'
|
|
- name: Run the build process with Docker
|
|
uses: addnab/docker-run-action@v3
|
|
with:
|
|
image: midwan/amiberry-docker-aarch64:latest
|
|
options: -v ${{ github.workspace }}:/build
|
|
run: |
|
|
make capsimg
|
|
make -j8 PLATFORM=rpi3-64-sdl2
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
name: amiberry-rpi3-sdl2-64bit-debian
|
|
path: |
|
|
amiberry
|
|
capsimg.so
|
|
abr/**
|
|
conf/**
|
|
controllers/**
|
|
data/**
|
|
kickstarts/**
|
|
savestates/**
|
|
screenshots/**
|
|
whdboot/**
|
|
- name: Get tag
|
|
if: github.ref_type == 'tag'
|
|
id: tag
|
|
uses: dawidd6/action-get-tag@v1
|
|
with:
|
|
# Optionally strip `v` prefix
|
|
strip_v: false
|
|
- name: ZIP binaries
|
|
if: github.ref_type == 'tag'
|
|
run: zip -r amiberry-${{ steps.tag.outputs.tag }}-rpi3-sdl2-64bit-debian.zip amiberry capsimg.so abr conf controllers data kickstarts savestates screenshots whdboot
|
|
- name: Create Changelog
|
|
if: github.ref_type == 'tag'
|
|
id: changelog
|
|
uses: loopwerk/tag-changelog@v1
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
config_file: .github/tag-changelog-config.js
|
|
- name: Create Release
|
|
if: github.ref_type == 'tag'
|
|
uses: ncipollo/release-action@v1
|
|
with:
|
|
allowUpdates: true
|
|
omitBodyDuringUpdate: true
|
|
body: ${{ steps.changelog.outputs.changes }}
|
|
artifacts: |
|
|
amiberry-${{ steps.tag.outputs.tag }}-rpi3-sdl2-64bit-debian.zip
|
|
|
|
build-rpi4-sdl2-64bit-debian:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
submodules: 'true'
|
|
- name: Run the build process with Docker
|
|
uses: addnab/docker-run-action@v3
|
|
with:
|
|
image: midwan/amiberry-docker-aarch64:latest
|
|
options: -v ${{ github.workspace }}:/build
|
|
run: |
|
|
make capsimg
|
|
make -j8 PLATFORM=rpi4-64-sdl2
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
name: amiberry-rpi4-sdl2-64bit-debian
|
|
path: |
|
|
amiberry
|
|
capsimg.so
|
|
abr/**
|
|
conf/**
|
|
controllers/**
|
|
data/**
|
|
kickstarts/**
|
|
savestates/**
|
|
screenshots/**
|
|
whdboot/**
|
|
- name: Get tag
|
|
if: github.ref_type == 'tag'
|
|
id: tag
|
|
uses: dawidd6/action-get-tag@v1
|
|
with:
|
|
# Optionally strip `v` prefix
|
|
strip_v: false
|
|
- name: ZIP binaries
|
|
if: github.ref_type == 'tag'
|
|
run: zip -r amiberry-${{ steps.tag.outputs.tag }}-rpi4-sdl2-64bit-debian.zip amiberry capsimg.so abr conf controllers data kickstarts savestates screenshots whdboot
|
|
- name: Create Changelog
|
|
if: github.ref_type == 'tag'
|
|
id: changelog
|
|
uses: loopwerk/tag-changelog@v1
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
config_file: .github/tag-changelog-config.js
|
|
- name: Create Release
|
|
if: github.ref_type == 'tag'
|
|
uses: ncipollo/release-action@v1
|
|
with:
|
|
allowUpdates: true
|
|
omitBodyDuringUpdate: true
|
|
body: ${{ steps.changelog.outputs.changes }}
|
|
artifacts: |
|
|
amiberry-${{ steps.tag.outputs.tag }}-rpi4-sdl2-64bit-debian.zip
|
|
|
|
build-RK3399-sdl2-64bit-debian:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
submodules: 'true'
|
|
- name: Run the build process with Docker
|
|
uses: addnab/docker-run-action@v3
|
|
with:
|
|
image: midwan/amiberry-docker-aarch64:latest
|
|
options: -v ${{ github.workspace }}:/build
|
|
run: |
|
|
make capsimg
|
|
make -j8 PLATFORM=n2
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
name: amiberry-rk3399-sdl2-64bit-debian
|
|
path: |
|
|
amiberry
|
|
capsimg.so
|
|
abr/**
|
|
conf/**
|
|
controllers/**
|
|
data/**
|
|
kickstarts/**
|
|
savestates/**
|
|
screenshots/**
|
|
whdboot/**
|
|
- name: Get tag
|
|
if: github.ref_type == 'tag'
|
|
id: tag
|
|
uses: dawidd6/action-get-tag@v1
|
|
with:
|
|
# Optionally strip `v` prefix
|
|
strip_v: false
|
|
- name: ZIP binaries
|
|
if: github.ref_type == 'tag'
|
|
run: zip -r amiberry-${{ steps.tag.outputs.tag }}-rk3399-sdl2-64bit-debian.zip amiberry capsimg.so abr conf controllers data kickstarts savestates screenshots whdboot
|
|
- name: Create Changelog
|
|
if: github.ref_type == 'tag'
|
|
id: changelog
|
|
uses: loopwerk/tag-changelog@v1
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
config_file: .github/tag-changelog-config.js
|
|
- name: Create Release
|
|
if: github.ref_type == 'tag'
|
|
uses: ncipollo/release-action@v1
|
|
with:
|
|
allowUpdates: true
|
|
omitBodyDuringUpdate: true
|
|
body: ${{ steps.changelog.outputs.changes }}
|
|
artifacts: |
|
|
amiberry-${{ steps.tag.outputs.tag }}-rk3399-sdl2-64bit-debian.zip
|
|
|
|
build-macOS-64bit-intel:
|
|
runs-on: [self-hosted, macOS, X64]
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
submodules: 'true'
|
|
- name: make capsimg
|
|
run: make capsimg
|
|
- name: make for macOS X64
|
|
run: make -j4 PLATFORM=osx-x86
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
name: amiberry-macOS-64bit-intel
|
|
path: |
|
|
Amiberry.app/**
|
|
- name: Get tag
|
|
if: github.ref_type == 'tag'
|
|
id: tag
|
|
uses: dawidd6/action-get-tag@v1
|
|
with:
|
|
# Optionally strip `v` prefix
|
|
strip_v: false
|
|
- name: ZIP binaries
|
|
if: github.ref_type == 'tag'
|
|
run: zip -r amiberry-${{ steps.tag.outputs.tag }}-macOS-64bit-intel.zip Amiberry.app
|
|
- name: Create Changelog
|
|
if: github.ref_type == 'tag'
|
|
id: changelog
|
|
uses: loopwerk/tag-changelog@v1
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
config_file: .github/tag-changelog-config.js
|
|
- name: Create Release
|
|
if: github.ref_type == 'tag'
|
|
uses: ncipollo/release-action@v1
|
|
with:
|
|
allowUpdates: true
|
|
omitBodyDuringUpdate: true
|
|
body: ${{ steps.changelog.outputs.changes }}
|
|
artifacts: |
|
|
amiberry-${{ steps.tag.outputs.tag }}-macOS-64bit-intel.zip
|
|
|
|
build-x86-64-ubuntu:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
submodules: 'true'
|
|
- name: Run the build process with Docker
|
|
uses: addnab/docker-run-action@v3
|
|
with:
|
|
image: midwan/amiberry-docker-x86_64:latest
|
|
options: -v ${{ github.workspace }}:/build
|
|
run: |
|
|
make capsimg
|
|
make -j8 PLATFORM=x86-64
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
name: amiberry-x86-64-ubuntu
|
|
path: |
|
|
amiberry
|
|
capsimg.so
|
|
abr/**
|
|
conf/**
|
|
controllers/**
|
|
data/**
|
|
kickstarts/**
|
|
savestates/**
|
|
screenshots/**
|
|
whdboot/**
|
|
- name: Get tag
|
|
if: github.ref_type == 'tag'
|
|
id: tag
|
|
uses: dawidd6/action-get-tag@v1
|
|
with:
|
|
# Optionally strip `v` prefix
|
|
strip_v: false
|
|
- name: ZIP binaries
|
|
if: github.ref_type == 'tag'
|
|
run: zip -r amiberry-${{ steps.tag.outputs.tag }}-x86-64-ubuntu.zip amiberry capsimg.so abr conf controllers data kickstarts savestates screenshots whdboot
|
|
- name: Create Changelog
|
|
if: github.ref_type == 'tag'
|
|
id: changelog
|
|
uses: loopwerk/tag-changelog@v1
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
config_file: .github/tag-changelog-config.js
|
|
- name: Create Release
|
|
if: github.ref_type == 'tag'
|
|
uses: ncipollo/release-action@v1
|
|
with:
|
|
allowUpdates: true
|
|
omitBodyDuringUpdate: true
|
|
body: ${{ steps.changelog.outputs.changes }}
|
|
artifacts: |
|
|
amiberry-${{ steps.tag.outputs.tag }}-x86-64-ubuntu.zip |