Add Evol testbed CI image
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
name: build-ci-image
|
||||
|
||||
on:
|
||||
push:
|
||||
paths:
|
||||
- ci/Dockerfile
|
||||
- .dockerignore
|
||||
- .gitea/workflows/build-ci-image.yml
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
image:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Log in to container registry
|
||||
run: |
|
||||
echo "${{ secrets.REGISTRY_PASSWORD }}" | docker login "${{ vars.REGISTRY_HOST }}" \
|
||||
-u "${{ secrets.REGISTRY_USERNAME }}" \
|
||||
--password-stdin
|
||||
|
||||
- name: Build CI image
|
||||
run: |
|
||||
docker build \
|
||||
--build-arg BASE_IMAGE=catthehacker/ubuntu:act-latest \
|
||||
--build-arg LLVM_VERSION=22 \
|
||||
--build-arg MESON_VERSION=latest \
|
||||
-t "${{ vars.REGISTRY_IMAGE }}:latest" \
|
||||
-t "${{ vars.REGISTRY_IMAGE }}:clang22" \
|
||||
-f ci/Dockerfile .
|
||||
|
||||
- name: Push CI image
|
||||
run: |
|
||||
docker push "${{ vars.REGISTRY_IMAGE }}:latest"
|
||||
docker push "${{ vars.REGISTRY_IMAGE }}:clang22"
|
||||
@@ -0,0 +1,34 @@
|
||||
name: build
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
linux:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
# Set vars.CI_IMAGE to the same value as vars.REGISTRY_IMAGE, or replace this
|
||||
# line with your full image path, e.g. git.neosisyphus.com/evol3d/evol-testbed:clang22
|
||||
container:
|
||||
image: ${{ vars.CI_IMAGE }}:clang22
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Check CI toolchain
|
||||
run: |
|
||||
clang --version
|
||||
clang++ --version
|
||||
meson --version
|
||||
ninja --version
|
||||
python3 --version
|
||||
vulkaninfo --summary || true
|
||||
|
||||
- name: Configure
|
||||
run: |
|
||||
meson setup build
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
meson compile -C build
|
||||
Reference in New Issue
Block a user