From 16e0f4906df8c9fde1457ee21bcef8a3b1c6146a Mon Sep 17 00:00:00 2001 From: samuello1228 Date: Fri, 10 Feb 2023 00:54:09 +0800 Subject: [PATCH 1/4] create workflow for building --- .github/workflows/build-macOS.yml | 33 +++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/build-macOS.yml diff --git a/.github/workflows/build-macOS.yml b/.github/workflows/build-macOS.yml new file mode 100644 index 0000000..89c33be --- /dev/null +++ b/.github/workflows/build-macOS.yml @@ -0,0 +1,33 @@ +name: build on macOS + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + strategy: + matrix: + runner: [macos-11, macos-12] + runs-on: ${{ matrix.runner }} + + steps: + - uses: actions/checkout@v3 + - name: install dependencies + run: brew install automake coreutils ffmpeg wxwidgets + - name : symlink wxwin.m4 + run: (cd /usr/local/share/aclocal && ln -s ../../Cellar/wxwidgets/3.2.1/share/wx/3.2/aclocal/wxwin.m4 .) + - name: autogen + run: ./autogen.sh + - name: configure + run: ./configure + - name: make + run: make + - name: make check + run: make check + - name: make distcheck + run: make distcheck + - name: bundle + run: ./dist/osx/bundle.sh From f74a93bff159b5bfafddcb988a94e66015c16169 Mon Sep 17 00:00:00 2001 From: samuello1228 Date: Fri, 10 Feb 2023 01:44:38 +0800 Subject: [PATCH 2/4] upload binary --- .github/workflows/build-macOS.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/build-macOS.yml b/.github/workflows/build-macOS.yml index 89c33be..14f4310 100644 --- a/.github/workflows/build-macOS.yml +++ b/.github/workflows/build-macOS.yml @@ -31,3 +31,9 @@ jobs: run: make distcheck - name: bundle run: ./dist/osx/bundle.sh + + - name: Upload binary + uses: actions/upload-artifact@v3 + with: + name: binary + path: dist/osx/Spek.dmg From 72fa1a75c0c772a536c8498686bd33772fbccf52 Mon Sep 17 00:00:00 2001 From: samuello1228 Date: Fri, 10 Feb 2023 02:01:35 +0800 Subject: [PATCH 3/4] binary name --- .github/workflows/build-macOS.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-macOS.yml b/.github/workflows/build-macOS.yml index 14f4310..f2111fc 100644 --- a/.github/workflows/build-macOS.yml +++ b/.github/workflows/build-macOS.yml @@ -35,5 +35,5 @@ jobs: - name: Upload binary uses: actions/upload-artifact@v3 with: - name: binary + name: binary-${{ matrix.runner }} path: dist/osx/Spek.dmg From cf9a668b3a70598383effd5946e60f09ea091d2c Mon Sep 17 00:00:00 2001 From: samuello1228 Date: Fri, 10 Feb 2023 06:19:56 +0800 Subject: [PATCH 4/4] improve symlink wxwin.m4 --- .github/workflows/build-macOS.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-macOS.yml b/.github/workflows/build-macOS.yml index f2111fc..96f614c 100644 --- a/.github/workflows/build-macOS.yml +++ b/.github/workflows/build-macOS.yml @@ -18,7 +18,7 @@ jobs: - name: install dependencies run: brew install automake coreutils ffmpeg wxwidgets - name : symlink wxwin.m4 - run: (cd /usr/local/share/aclocal && ln -s ../../Cellar/wxwidgets/3.2.1/share/wx/3.2/aclocal/wxwin.m4 .) + run: find /usr/local/Cellar/wxwidgets/ -name "wxwin.m4" -exec ln -s {} /usr/local/share/aclocal/wxwin.m4 \; - name: autogen run: ./autogen.sh - name: configure