@@ -156,3 +156,82 @@ jobs:
156156 working-directory : release
157157 run : .github/jobs/configure-checks/setup_configure_image.sh
158158
159+ # debian-family:
160+ # needs: build
161+ # strategy:
162+ # matrix:
163+ # version: [jammy, focal, rolling]
164+ # os: [ubuntu]
165+ # releaseBranch:
166+ # - ${{ contains(github.ref, 'gh-readonly-queue') }}
167+ # exclude:
168+ # - releaseBranch: false
169+ # include:
170+ # - os: debian
171+ # version: stable
172+ # - os: debian
173+ # version: testing
174+ # runs-on: ubuntu-latest
175+ # env:
176+ # DEBIAN_FRONTEND: noninteractive
177+ # TZ: Etc/UTC
178+ # container:
179+ # image: ${{ matrix.os }}:${{ matrix.version }}
180+ # steps:
181+ # - name: Download Artifact
182+ # uses: actions/download-artifact@v4
183+ # with:
184+ # name: test-tarball
185+ # - name: Install git so we get the .github directory
186+ # run: |
187+ # apt-get update
188+ # apt-get install -y git
189+ # - name: Unpack the "Release" tarball
190+ # run: |
191+ # ls -atrl
192+ # tar xvf release.tar.gz
193+ # - name: Setup image and run bats tests
194+ # working-directory: domjudge
195+ # run: .github/jobs/configure-checks/setup_configure_image.sh
196+ #
197+ # # Copy the fedora stuff here and use:
198+ # # if: github.event_name != 'merge_group' on the job level
199+ # #name: Build and Trigger Workflows
200+ # ## Either just filter the fedora stuff in onther build step (and run on main but skip) or trigger 2 workflows. I don't work enough with GHA to see which one I prefer for now.
201+ # #
202+ # #on:
203+ # # push:
204+ # # branches:
205+ # # - main
206+ # #
207+ # #jobs:
208+ # # build:
209+ # # name: Build Artifact
210+ # # runs-on: ubuntu-latest
211+ # #
212+ # # steps:
213+ # # - name: Checkout code
214+ # # uses: actions/checkout@v4
215+ # #
216+ # # - name: Build project
217+ # # run: |
218+ # # # Example build command
219+ # # mkdir -p build
220+ # # echo "Artifact content" > build/artifact.txt
221+ # #
222+ # # - name: Upload artifact
223+ # # uses: actions/upload-artifact@v4
224+ # # with:
225+ # # name: my-artifact
226+ # # path: build/artifact.txt
227+ # #
228+ # #
229+ # # - name: Trigger workflow 2
230+ # # run: |
231+ # # curl -X POST \
232+ # # -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
233+ # # -H "Accept: application/vnd.github+json" \
234+ # # https://api.github.com/repos/${{ github.repository }}/actions/workflows/workflow_2.yml/dispatches \
235+ # # -d '{"ref":"main"}'
236+ # #
237+ # #
0 commit comments