Skip to content

Improve readme documentation #178

Improve readme documentation

Improve readme documentation #178

Workflow file for this run

name: CI
on:
- push
- pull_request
- workflow_dispatch
jobs:
test:
runs-on: ${{ matrix.config.os }}
name: test-vcpkg-action
strategy:
fail-fast: false
matrix:
config:
- os: ubuntu-22.04
vcpkg_triplet: x64-linux-release
- os: macos-15-intel
vcpkg_triplet: x64-osx-release
- os: windows-2022
vcpkg_triplet: x64-windows-release
steps:
- uses: actions/checkout@v6
- name: vcpkg build
id: vcpkg
uses: ./
with:
pkgs: boost-date-time
triplet: ${{ matrix.config.vcpkg_triplet }}
cache-key: ${{ matrix.config.os }}-test
revision: master
token: ${{ github.token }}
collect-logs: 'on-failure'
- name: tree
if: runner.os == 'Windows'
shell: cmd
run: tree
- name: cmake configure
run: >
cmake ${{ steps.vcpkg.outputs.vcpkg-cmake-config }} -S ${{ github.workspace }}/.github/cmake_test -B cmake_build
- name: print vcpkg_dry_run.txt (Windows)
if: runner.os == 'Windows'
shell: powershell
run: Get-Content "${{ github.workspace }}\\vcpkg\\vcpkg_dry_run.txt"
- name: print vcpkg_dry_run.txt (Unix)
if: runner.os != 'Windows'
shell: bash
run: cat "${{ github.workspace }}/vcpkg/vcpkg_dry_run.txt"
test-latest-vcpkg-release:
runs-on: ${{ matrix.config.os }}
name: test-vcpkg-action-latest-vcpkg-release
strategy:
fail-fast: false
matrix:
config:
- os: ubuntu-22.04
vcpkg_triplet: x64-linux-release
- os: macos-15-intel
vcpkg_triplet: x64-osx-release
- os: windows-2022
vcpkg_triplet: x64-windows-release
steps:
- uses: actions/checkout@v6
- name: vcpkg build
id: vcpkg
uses: ./
with:
pkgs: boost-date-time
triplet: ${{ matrix.config.vcpkg_triplet }}
cache-key: ${{ matrix.config.os }}-latest-vcpkg-release
token: ${{ github.token }}
collect-logs: 'on-failure'
- name: tree
if: runner.os == 'Windows'
shell: cmd
run: tree
- name: cmake configure
run: >
cmake ${{ steps.vcpkg.outputs.vcpkg-cmake-config }} -S ${{ github.workspace }}/.github/cmake_test -B cmake_build
- name: print vcpkg_dry_run.txt (Windows)
if: runner.os == 'Windows'
shell: powershell
run: Get-Content "${{ github.workspace }}\\vcpkg\\vcpkg_dry_run.txt"
- name: print vcpkg_dry_run.txt (Unix)
if: runner.os != 'Windows'
shell: bash
run: cat "${{ github.workspace }}/vcpkg/vcpkg_dry_run.txt"
test-manifest:
runs-on: ${{ matrix.config.os }}
name: test-manifest
strategy:
fail-fast: false
matrix:
config:
- os: ubuntu-22.04
vcpkg_triplet: x64-linux-release
- os: macos-15-intel
vcpkg_triplet: x64-osx-release
- os: windows-2022
vcpkg_triplet: x64-windows-release
steps:
- uses: actions/checkout@v6
- name: vcpkg build
id: vcpkg
uses: ./
with:
triplet: ${{ matrix.config.vcpkg_triplet }}
cache-key: ${{ matrix.config.os }}-manifest
token: ${{ github.token }}
manifest-dir: ${{ github.workspace }}/.github/manifest
collect-logs: 'on-failure'
- name: cmake configure
run: >
cmake ${{ steps.vcpkg.outputs.vcpkg-cmake-config }} -S ${{ github.workspace }}/.github/cmake_test -B cmake_build
- name: print vcpkg_dry_run.txt (Windows)
if: runner.os == 'Windows'
shell: powershell
run: Get-Content "${{ github.workspace }}\\vcpkg\\vcpkg_dry_run.txt"
- name: print vcpkg_dry_run.txt (Unix)
if: runner.os != 'Windows'
shell: bash
run: cat "${{ github.workspace }}/vcpkg/vcpkg_dry_run.txt"