ci: test glslang #758
Workflow file for this run
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: "Ubuntu" | |
on: | |
push: | |
branches-ignore: | |
- docs | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref_name }} | |
cancel-in-progress: true | |
env: | |
VCPKG_ENABLE_METRICS: 0 | |
jobs: | |
overlay: | |
runs-on: "ubuntu-latest" # check https://github.com/actions/runner-images/blob/main/images/ubuntu | |
strategy: | |
matrix: | |
include: | |
- vcpkg_tag: "2024.06.15" | |
vcpkg_commit: "f7423ee180c4b7f40d43402c2feb3859161ef625" | |
- vcpkg_tag: "2024.07.12" | |
vcpkg_commit: "1de2026f28ead93ff1773e6e680387643e914ea1" | |
- vcpkg_tag: "2024.08.23" | |
vcpkg_commit: "3508985146f1b1d248c67ead13f8f54be5b4f5da" | |
fail-fast: false | |
env: | |
VCPKG_FEATURE_FLAGS: "registries,binarycaching,manifests,versions" | |
VCPKG_OVERLAY_PORTS: "${{ github.workspace }}/ports" | |
VCPKG_OVERLAY_TRIPLETS: "${{ github.workspace }}/triplets" | |
steps: | |
- uses: actions/checkout@v4.2.0 | |
- uses: ConorMacBride/install-package@v1.1.0 | |
with: | |
apt: nuget nasm libnuma-dev libopenmpi-dev libx11-dev libxi-dev libxext-dev libx11-xcb-dev | |
- uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
aws-region: ap-northeast-2 | |
- uses: actions/cache@v4.0.2 | |
with: | |
key: "v2432-${{ runner.os }}-${{ matrix.vcpkg_tag }}" | |
path: | | |
${{ runner.temp }}/vcpkg-downloads | |
- name: "Create cache folders" | |
shell: bash | |
run: | | |
mkdir -p ${VCPKG_DOWNLOADS} | |
env: | |
VCPKG_DOWNLOADS: "${{ runner.temp }}/vcpkg-downloads" | |
- uses: lukka/run-vcpkg@v11.5 | |
name: "Run vcpkg(x64-linux)" | |
with: | |
vcpkgDirectory: "${{ runner.temp }}/vcpkg" # ignore VCPKG_INSTALLATION_ROOT | |
vcpkgGitCommitId: "${{ matrix.vcpkg_commit }}" | |
vcpkgJsonGlob: "test/vcpkg.json" | |
vcpkgConfigurationJsonGlob: "test/vcpkg-configuration.json" | |
runVcpkgInstall: true | |
runVcpkgFormatString: '[`install`, `--keep-going`, `--clean-buildtrees-after-build`, `--clean-packages-after-build`, `--triplet`, `$[env.VCPKG_DEFAULT_TRIPLET]`, `--x-feature`, `test`]' | |
env: | |
VCPKG_DEFAULT_TRIPLET: "x64-linux" | |
VCPKG_BINARY_SOURCES: ${{ secrets.VCPKG_BINARY_SOURCES }} | |
VCPKG_DOWNLOADS: "${{ runner.temp }}/vcpkg-downloads" | |
- uses: lukka/run-vcpkg@v11.5 | |
name: "Run vcpkg(arm64-linux)" # It's for future works. Not ready yet... | |
if: ${{ false }} | |
with: | |
vcpkgDirectory: "${{ runner.temp }}/vcpkg" # ignore VCPKG_INSTALLATION_ROOT | |
vcpkgGitCommitId: "${{ matrix.vcpkg_commit }}" | |
vcpkgJsonGlob: "test/vcpkg.json" | |
vcpkgConfigurationJsonGlob: "test/vcpkg-configuration.json" | |
runVcpkgInstall: true | |
runVcpkgFormatString: '[`install`, `--keep-going`, `--clean-buildtrees-after-build`, `--clean-packages-after-build`, `--triplet`, `$[env.VCPKG_DEFAULT_TRIPLET]`, `--x-feature`, `test`]' | |
env: | |
VCPKG_DEFAULT_TRIPLET: "arm64-linux" | |
VCPKG_BINARY_SOURCES: ${{ secrets.VCPKG_BINARY_SOURCES }} | |
VCPKG_DOWNLOADS: "${{ runner.temp }}/vcpkg-downloads" |