diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 987690e..fea317e 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -11,7 +11,7 @@ jobs: dc: [ldc, gdc] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Create Build Environment run: cd tests/ci/ && podman build -t asgen -f ./Dockerfile-debian-testing . @@ -22,18 +22,37 @@ jobs: ./tests/ci/build-and-test.sh - build-fedora-rawhide: - name: Fedora Rawhide + build-debian-stable: + name: Debian Stable + runs-on: ubuntu-latest + strategy: + matrix: + dc: [ldc] + + steps: + - uses: actions/checkout@v3 + + - name: Create Build Environment + run: cd tests/ci/ && podman build -t asgen -f ./Dockerfile-debian-stable . + + - name: Build & Test + continue-on-error: ${{ matrix.dc == 'gdc' }} + run: podman run -a stdout -a stderr -e DC=${{ matrix.dc }} -v `pwd`:/build asgen + ./tests/ci/build-and-test.sh + + + build-fedora-latest: + name: Fedora Latest runs-on: ubuntu-latest strategy: matrix: dc: [ldc, gdc] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Create Build Environment - run: cd tests/ci/ && podman build -t asgen -f ./Dockerfile-fedora-rawhide . + run: cd tests/ci/ && podman build -t asgen -f ./Dockerfile-fedora-latest . - name: Build & Test continue-on-error: ${{ matrix.dc == 'gdc' }} @@ -45,7 +64,7 @@ jobs: name: Ubuntu LTS runs-on: ubuntu-22.04 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Create Build Environment run: sudo ./tests/ci/install-deps-deb.sh diff --git a/tests/ci/Dockerfile-debian-stable b/tests/ci/Dockerfile-debian-stable new file mode 100644 index 0000000..4efba90 --- /dev/null +++ b/tests/ci/Dockerfile-debian-stable @@ -0,0 +1,18 @@ +# +# Docker file for AppStream Generator CI tests +# +FROM debian:stable + +# prepare +RUN mkdir -p /build/ci/ + +# install build dependencies +COPY install-deps-deb.sh /build/ci/ +RUN chmod +x /build/ci/install-deps-deb.sh && /build/ci/install-deps-deb.sh + +# install 3rd-party stuff +COPY ci-install-extern.sh /build/ci/ +RUN chmod +x /build/ci/ci-install-extern.sh && /build/ci/ci-install-extern.sh + +# finish +WORKDIR /build diff --git a/tests/ci/Dockerfile-fedora-rawhide b/tests/ci/Dockerfile-fedora-latest similarity index 89% rename from tests/ci/Dockerfile-fedora-rawhide rename to tests/ci/Dockerfile-fedora-latest index 7660091..b3b0403 100644 --- a/tests/ci/Dockerfile-fedora-rawhide +++ b/tests/ci/Dockerfile-fedora-latest @@ -1,7 +1,7 @@ # # Docker file for AppStream Generator CI tests # -FROM registry.fedoraproject.org/fedora:rawhide +FROM registry.fedoraproject.org/fedora:latest # prepare RUN mkdir -p /build/ci/