create workflow for building

This commit is contained in:
samuello1228 2023-02-10 00:54:09 +08:00 committed by GitHub
parent 5a331f5f92
commit 16e0f4906d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

33
.github/workflows/build-macOS.yml vendored Normal file
View File

@ -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