Handle empty ignore settings #250
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, pull_request] | |
jobs: | |
build-linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Dependencies | |
run: | | |
sudo apt-get update | |
sudo apt install \ | |
libglib2.0-dev \ | |
libgirepository1.0-dev \ | |
duktape-dev \ | |
meson \ | |
gcovr \ | |
gi-docgen \ | |
gsettings-desktop-schemas-dev \ | |
libcurl4-openssl-dev \ | |
valac | |
- name: Build setup | |
run: meson setup build -Db_coverage=true | |
- name: Build | |
run: ninja -C build | |
- name: Tests and Coverage | |
run: | | |
ninja test -C build | |
ninja coverage -C build | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: ./build/docs/libproxy-1.0/ | |
if-no-files-found: error | |
- name: CodeCov | |
uses: codecov/codecov-action@v4 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} # required | |
build-osx: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: | | |
3.12 | |
- name: Setup | |
run: | | |
pip install meson ninja | |
brew install gobject-introspection duktape gcovr gi-docgen vala gsettings-desktop-schemas | |
- name: Build and Test | |
run: | | |
meson setup build -Ddocs=false | |
ninja -C build | |
ninja -C build test | |
build-windows: | |
runs-on: windows-latest | |
continue-on-error: true | |
defaults: | |
run: | |
shell: msys2 {0} | |
steps: | |
- uses: msys2/setup-msys2@v2 | |
with: | |
msystem: MINGW64 | |
install: >- | |
base-devel | |
git | |
mingw-w64-x86_64-toolchain | |
mingw-w64-x86_64-ccache | |
mingw-w64-x86_64-pkg-config | |
mingw-w64-x86_64-gobject-introspection | |
mingw-w64-x86_64-python-gobject | |
mingw-w64-x86_64-meson | |
mingw-w64-x86_64-glib2 | |
mingw-w64-x86_64-duktape | |
mingw-w64-x86_64-gi-docgen | |
mingw-w64-x86_64-curl | |
mingw-w64-x86_64-vala | |
mingw-w64-x86_64-gsettings-desktop-schemas | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.9' | |
- name: Build and Test | |
# Disable docs for the moment until msys2 gi-docgen update has landed | |
run: | | |
meson setup build -Ddocs=false | |
ninja -C build | |
ninja -C build test | |
# Deploy job | |
deploy: | |
# needs: [build-linux, build-osx, build-windows] | |
needs: build-linux | |
if: github.ref == 'refs/heads/main' | |
permissions: | |
pages: write # to deploy to Pages | |
id-token: write # to verify the deployment originates from an appropriate source | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |