mac build

This commit is contained in:
Christopher A. Mosher 2022-10-30 23:30:44 -04:00
parent 6614ab6423
commit 1a7f6a13ac
1 changed files with 35 additions and 1 deletions

View File

@ -13,7 +13,7 @@ permissions:
contents: "write"
jobs:
"publish":
"publish-ubuntu":
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v3"
@ -53,3 +53,37 @@ jobs:
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