Add some github actions #7
This file contains hidden or 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: Test building on macOS | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| jobs: | |
| build: | |
| name: build | |
| runs-on: macos-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Prepare build environment | |
| run: | | |
| brew update | |
| brew install codespell gettext json-glib meson pidgin zlib | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| - name: Setup Meson build | |
| run: meson setup build | |
| - name: Build project | |
| run: ninja -C build all | |
| - name: Install build results | |
| run: DESTDIR=$PWD/dist ninja -C build install | |
| - uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 | |
| with: | |
| name: "macOS" | |
| path: ./dist |