Skip to content

Tweak CI

Tweak CI #2

name: praction
on: [push, pull_request]
jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Build image
uses: docker/build-push-action@v6
with:
platforms: linux/amd64
context: .
file: scripts/debian_asan.Dockerfile
tags: debian_asan
outputs: type=docker,dest=/tmp/debian_asan.tar
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: debian_asan
path: /tmp/debian_asan.tar
thirdparty-tests:
runs-on: ubuntu-latest
needs: docker
strategy:
matrix:
include:
- thirdparty: test_git
- thirdparty: test_libpng
- thirdparty: test_openssh
- thirdparty: test_postgres
- thirdparty: test_sqlite
- thirdparty: test_zlib
- thirdparty: test_zstd
- thirdparty: build_nano
steps:
- name: Download artifact
uses: actions/download-artifact@v4
with:
name: debian_asan
path: /tmp
- name: Load image
run: docker load --input /tmp/debian_asan.tar
- name: Run test
run: >
sudo docker run
debian_asan su non-root -c
'bash "$0" "$1"' linux_thirdparty.bash ${{ matrix.thirdparty }}