update outdated action and dependencies #51
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches: [ master, develop ] | |
jobs: | |
Linux: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get -y install libwxgtk3.0-gtk3-dev cmake libfccp-dev libpulse-dev libasound2-dev | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Compile and package | |
run: | | |
mkdir build | |
cd build | |
cmake .. | |
cmake --build . | |
cmake --build . --target package | |
- name: Archive build result | |
uses: actions/upload-artifact@v4 | |
with: | |
name: linux-binary | |
path: | | |
build/AudMeS | |
build/AudMeS-*.deb | |
MacOS: | |
runs-on: macos-12 | |
env: | |
CC: cc | |
CXX: c++ | |
CMAKE_BUILD_TYPE: Release | |
MACOSX_DEPLOYMENT_TARGET: 10.14 | |
steps: | |
- name: Install dependencies | |
run: | | |
brew install git | |
brew install wxwidgets | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Compile and package | |
run: | | |
git clone https://github.com/ben-strasser/fast-cpp-csv-parser libfccp | |
mkdir build | |
cd build | |
cmake .. | |
cmake --build . | |
cmake --build . --target package | |
- name: Archive build result | |
uses: actions/upload-artifact@v4 | |
with: | |
name: macos-binary | |
path: | | |
build/AudMeS | |
build/AudMeS-*.dmg | |
Windows: | |
runs-on: windows-latest | |
defaults: | |
run: | |
shell: msys2 {0} | |
env: | |
CC: gcc | |
CXX: g++ | |
CMAKE_BUILD_TYPE: Release | |
GENERATOR: 'MinGW Makefiles' | |
steps: | |
- name: Install dependencies | |
uses: msys2/setup-msys2@v2 | |
with: | |
msystem: MINGW32 | |
install: >- | |
base-devel | |
git | |
mingw-w64-i686-gcc | |
mingw-w64-i686-cmake | |
mingw-w64-i686-make | |
mingw-w64-i686-wxwidgets3.2-msw | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Compile and package | |
run: | | |
git clone https://github.com/ben-strasser/fast-cpp-csv-parser libfccp | |
mkdir build | |
cd build | |
cmake .. | |
cmake --build . | |
- name: Archive build result | |
uses: actions/upload-artifact@v4 | |
with: | |
name: win-binary | |
path: | | |
build/AudMeS.exe |