hf #145
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
# Copyright (c) 2019-2020 Luca Cappa | |
# Released under the term specified in file LICENSE.txt | |
# SPDX short identifier: MIT | |
name: linux | |
on: [push] | |
jobs: | |
job: | |
name: ${{ matrix.os }}-hosted-basic | |
runs-on: ${{ matrix.os }} | |
env: | |
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true' | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
include: | |
- os: ubuntu-latest | |
triplet: x64-linux | |
vcpkgCommitId: '8a9a97315aefb3f8bc5d81bf66ca0025938b9c91' | |
vcpkgPackages: 'sqlite3' | |
steps: | |
- uses: actions/checkout@master | |
- uses: lukka/get-cmake@latest | |
- name: dir | |
run: find $RUNNER_WORKSPACE | |
shell: bash | |
- name: Restore artifacts, or run vcpkg, build and cache artifacts | |
uses: lukka/run-vcpkg@v3 | |
id: runvcpkg | |
with: | |
vcpkgArguments: '${{ matrix.vcpkgPackages }}' | |
vcpkgTriplet: '${{ matrix.triplet }}' | |
vcpkgDirectory: '${{ runner.workspace }}/b/vcpkg' | |
vcpkgGitCommitId: '${{ matrix.vcpkgCommitId }}' | |
- name: dir | |
run: find $RUNNER_WORKSPACE | |
shell: bash | |
- name: Prints outputs of run-vcpkg task | |
run: echo "'${{ steps.runvcpkg.outputs.RUNVCPKG_VCPKG_ROOT_OUT }}' '${{ steps.runvcpkg.outputs.RUNVCPKG_VCPKG_TRIPLET_OUT }}' " | |
- name: Run CMake+Ninja without triplet | |
uses: lukka/run-cmake@v2 | |
id: runcmake | |
with: | |
cmakeGenerator: 'Ninja' | |
cmakeListsOrSettingsJson: 'CMakeListsTxtBasic' | |
cmakeListsTxtPath: '${{ github.workspace }}/CMakeLists.txt' | |
useVcpkgToolchainFile: true | |
buildWithCMakeArgs: '-- -v' | |
buildDirectory: '${{ runner.workspace }}/b/ninja/' | |
- name: Run CMake+Ninja with triplet (cmd) | |
uses: lukka/run-cmake@v2 | |
id: runcmake_cmd | |
with: | |
cmakeGenerator: 'Ninja' | |
cmakeListsOrSettingsJson: 'CMakeListsTxtBasic' | |
cmakeListsTxtPath: '${{ github.workspace }}/CMakeLists.txt' | |
useVcpkgToolchainFile: true | |
buildWithCMakeArgs: '-- -v' | |
vcpkgTriplet: ${{ steps.runvcpkg.outputs.RUNVCPKG_VCPKG_TRIPLET_OUT }} | |
buildDirectory: '${{ runner.workspace }}/b/ninja/' | |
- name: Run CMake+Ninja with triplet (bash) | |
if: false | |
uses: lukka/run-cmake@v2 | |
id: runcmake_bash | |
with: | |
cmakeGenerator: 'Ninja' | |
cmakeListsOrSettingsJson: 'CMakeListsTxtBasic' | |
cmakeListsTxtPath: '${{ github.workspace }}/CMakeLists.txt' | |
useVcpkgToolchainFile: true | |
buildWithCMakeArgs: '-- -v' | |
vcpkgTriplet: ${{ steps.runvcpkg.outputs.RUNVCPKG_VCPKG_TRIPLET_OUT }} | |
buildDirectory: '${{ runner.workspace }}/b/ninja-bash/' | |
useShell: bash |