mirror of
https://github.com/cmosher01/Epple-II.git
synced 2024-11-05 12:05:11 +00:00
90 lines
2.4 KiB
YAML
90 lines
2.4 KiB
YAML
---
|
|
on:
|
|
push:
|
|
tags:
|
|
- "*"
|
|
|
|
env:
|
|
name: "epple2"
|
|
desc: "Apple ][ emulator"
|
|
deb_depends: "libsdl2-2.0-0"
|
|
|
|
permissions:
|
|
contents: "write"
|
|
|
|
jobs:
|
|
"publish-ubuntu":
|
|
runs-on: "ubuntu-latest"
|
|
steps:
|
|
- uses: "actions/checkout@v3"
|
|
|
|
- run: |
|
|
set -x
|
|
sudo apt-get update -qqq
|
|
sudo apt-get upgrade -qqq
|
|
sudo apt-get install -qqq xa65 libsdl2-dev
|
|
./bootstrap
|
|
./configure
|
|
make
|
|
|
|
- run: |
|
|
mkdir -p ./deb/usr/local/bin
|
|
cp ./src/epple2 ./deb/usr/local/bin/
|
|
mkdir -p ./deb/usr/local/etc/epple2
|
|
cp ./conf/epple2.conf ./deb/usr/local/etc/epple2/
|
|
mkdir -p ./deb/usr/local/lib/epple2/system
|
|
cp ./rom/epple2sys.a65 ./deb/usr/local/lib/epple2/system/
|
|
mkdir -p ./deb/usr/local/lib/epple2/cards
|
|
cp ./rom/stdout.a65 ./deb/usr/local/lib/epple2/cards/
|
|
cp ./rom/stdin.a65 ./deb/usr/local/lib/epple2/cards/
|
|
cp ./rom/clock.a65 ./deb/usr/local/lib/epple2/cards/
|
|
|
|
- uses: "jiro4989/build-deb-action@v2"
|
|
with:
|
|
package: "${{ env.name }}"
|
|
desc: "${{ env.desc }}"
|
|
maintainer: "${{ github.repository_owner }}"
|
|
version: "${{ github.ref }}"
|
|
arch: "amd64"
|
|
package_root: "./deb/"
|
|
depends: "${{ env.deb_depends }}"
|
|
|
|
- uses: "softprops/action-gh-release@v1"
|
|
with:
|
|
files: |
|
|
*.deb
|
|
|
|
|
|
|
|
|
|
|
|
"publish-macos":
|
|
runs-on: "macos-latest"
|
|
steps:
|
|
- uses: "actions/checkout@v3"
|
|
|
|
- run: |
|
|
set -x
|
|
HOMEBREW_NO_AUTO_UPDATE=1 brew install autoconf automake xa sdl2
|
|
./bootstrap
|
|
./configure
|
|
make
|
|
|
|
- run: |
|
|
mkdir -p ./pkg/local/bin
|
|
cp ./src/epple2 ./pkg/local/bin/
|
|
mkdir -p ./pkg/local/etc/epple2
|
|
cp ./conf/epple2.conf ./pkg/local/etc/epple2/
|
|
mkdir -p ./pkg/local/lib/epple2/system
|
|
cp ./rom/epple2sys.a65 ./pkg/local/lib/epple2/system/
|
|
mkdir -p ./pkg/local/lib/epple2/cards
|
|
cp ./rom/stdout.a65 ./pkg/local/lib/epple2/cards/
|
|
cp ./rom/stdin.a65 ./pkg/local/lib/epple2/cards/
|
|
cp ./rom/clock.a65 ./pkg/local/lib/epple2/cards/
|
|
pkgbuild --identifier nu.mine.mosher.$name --root ./pkg/ --install-location /usr $name.pkg
|
|
|
|
- uses: "softprops/action-gh-release@v1"
|
|
with:
|
|
files: |
|
|
*.pkg
|