Update build.yml #2
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
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
types: [ "review_requested", "ready_for_review" ] | |
workflow_dispatch: | |
name: Build | |
permissions: | |
id-token: write | |
contents: read | |
env: | |
VCPKG_ROOT: ${{ github.workspace }}/vcpkg | |
jobs: | |
build: | |
name: "Build" | |
runs-on: ${{ matrix.config.os }} | |
strategy: | |
matrix: | |
config: | |
- os: ubuntu-latest | |
vcpkg_triplet: x64-linux | |
- os: windows-latest | |
vcpkg_triplet: x64-windows | |
fail-fast: false | |
steps: | |
- uses: actions/[email protected] | |
with: | |
submodules: recursive | |
- uses: johnwason/vcpkg-action@v5 | |
with: | |
pkgs: pkgconf gettext-libintl maddy jsoncpp curl curlpp sqlite3 sqlcipher sqlitecpp[sqlcipher] dbus | |
triplet: ${{ matrix.config.vcpkg_triplet }} | |
extra-args: "--allow-unsupported" | |
cache-key: ${{ matrix.config.os }} | |
token: ${{ github.token }} | |
- uses: threeal/[email protected] | |
with: | |
run-build: true |