Add MinGW/UCRT, LLVM-MinGW and Vulkan CI images
This commit is contained in:
commit
5dcc5f3fa0
5 files changed
+282
No files matched your search
@@ -0,0 +1,77 @@
|
||||
# Builds every image in images/ and pushes it to the Gitea container registry
|
||||
# as git.faumaray.com/void/ci-images:<image>. Pull requests build without
|
||||
# pushing; a push to main publishes the tags the runner labels use.
|
||||
name: Build CI images
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
paths:
|
||||
- "images/**"
|
||||
- ".gitea/workflows/build.yml"
|
||||
pull_request:
|
||||
paths:
|
||||
- "images/**"
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
packages: write
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
image:
|
||||
- vulkan
|
||||
- windows-gcc
|
||||
- windows-clang
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Resolve the registry and image name
|
||||
id: image
|
||||
shell: bash
|
||||
run: |
|
||||
set -euo pipefail
|
||||
server=${GITHUB_SERVER_URL#http://}
|
||||
server=${server#https://}
|
||||
server=${server%%/*}
|
||||
repo=${GITHUB_REPOSITORY,,}
|
||||
printf 'registry=%s\n' "$server" >>"$GITHUB_OUTPUT"
|
||||
printf 'ref=%s/%s:%s\n' "$server" "$repo" "${{ matrix.image }}" >>"$GITHUB_OUTPUT"
|
||||
|
||||
- name: Log in to the Gitea container registry
|
||||
if: github.event_name != 'pull_request'
|
||||
shell: bash
|
||||
run: |
|
||||
set -euo pipefail
|
||||
printf '%s' "${{ github.token }}" |
|
||||
docker login "${{ steps.image.outputs.registry }}" \
|
||||
-u "${{ github.actor }}" --password-stdin
|
||||
|
||||
- name: Build
|
||||
shell: bash
|
||||
run: |
|
||||
set -euo pipefail
|
||||
docker build --pull \
|
||||
--tag "${{ steps.image.outputs.ref }}" \
|
||||
"images/${{ matrix.image }}"
|
||||
|
||||
- name: Smoke test Vulkan (software driver)
|
||||
if: matrix.image == 'vulkan'
|
||||
shell: bash
|
||||
run: |
|
||||
set -euo pipefail
|
||||
docker run --rm "${{ steps.image.outputs.ref }}" bash -lc '
|
||||
icd=$(ls /usr/share/vulkan/icd.d/lvp_icd*.json | head -n1)
|
||||
xvfb-run -a env VK_DRIVER_FILES="$icd" vulkaninfo --summary'
|
||||
|
||||
- name: Push
|
||||
if: github.event_name != 'pull_request'
|
||||
shell: bash
|
||||
run: |
|
||||
set -euo pipefail
|
||||
docker push "${{ steps.image.outputs.ref }}"
|
||||
Reference in new issue
Block a user