diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index f3c3c78..0790d09 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -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