|
90 | 90 | working-directory: release
|
91 | 91 | run: .github/jobs/configure-checks/setup_configure_image.sh
|
92 | 92 |
|
| 93 | +# debian-family: |
| 94 | +# needs: build |
| 95 | +# strategy: |
| 96 | +# matrix: |
| 97 | +# version: [jammy, focal, rolling] |
| 98 | +# os: [ubuntu] |
| 99 | +# releaseBranch: |
| 100 | +# - ${{ contains(github.ref, 'gh-readonly-queue') }} |
| 101 | +# exclude: |
| 102 | +# - releaseBranch: false |
| 103 | +# include: |
| 104 | +# - os: debian |
| 105 | +# version: stable |
| 106 | +# - os: debian |
| 107 | +# version: testing |
| 108 | +# runs-on: ubuntu-latest |
| 109 | +# env: |
| 110 | +# DEBIAN_FRONTEND: noninteractive |
| 111 | +# TZ: Etc/UTC |
| 112 | +# container: |
| 113 | +# image: ${{ matrix.os }}:${{ matrix.version }} |
| 114 | +# steps: |
| 115 | +# - name: Download Artifact |
| 116 | +# uses: actions/download-artifact@v4 |
| 117 | +# with: |
| 118 | +# name: test-tarball |
| 119 | +# - name: Install git so we get the .github directory |
| 120 | +# run: | |
| 121 | +# apt-get update |
| 122 | +# apt-get install -y git |
| 123 | +# - name: Unpack the "Release" tarball |
| 124 | +# run: | |
| 125 | +# ls -atrl |
| 126 | +# tar xvf release.tar.gz |
| 127 | +# - name: Setup image and run bats tests |
| 128 | +# working-directory: domjudge |
| 129 | +# run: .github/jobs/configure-checks/setup_configure_image.sh |
| 130 | +# |
| 131 | +## Copy the fedora stuff here and use: |
| 132 | +## if: github.event_name != 'merge_group' on the job level |
| 133 | +##name: Build and Trigger Workflows |
| 134 | +### 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. |
| 135 | +## |
| 136 | +##on: |
| 137 | +## push: |
| 138 | +## branches: |
| 139 | +## - main |
| 140 | +## |
| 141 | +##jobs: |
| 142 | +## build: |
| 143 | +## name: Build Artifact |
| 144 | +## runs-on: ubuntu-latest |
| 145 | +## |
| 146 | +## steps: |
| 147 | +## - name: Checkout code |
| 148 | +## uses: actions/checkout@v4 |
| 149 | +## |
| 150 | +## - name: Build project |
| 151 | +## run: | |
| 152 | +## # Example build command |
| 153 | +## mkdir -p build |
| 154 | +## echo "Artifact content" > build/artifact.txt |
| 155 | +## |
| 156 | +## - name: Upload artifact |
| 157 | +## uses: actions/upload-artifact@v4 |
| 158 | +## with: |
| 159 | +## name: my-artifact |
| 160 | +## path: build/artifact.txt |
| 161 | +## |
| 162 | +## |
| 163 | +## - name: Trigger workflow 2 |
| 164 | +## run: | |
| 165 | +## curl -X POST \ |
| 166 | +## -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \ |
| 167 | +## -H "Accept: application/vnd.github+json" \ |
| 168 | +## https://api.github.com/repos/${{ github.repository }}/actions/workflows/workflow_2.yml/dispatches \ |
| 169 | +## -d '{"ref":"main"}' |
| 170 | +## |
| 171 | +## |
0 commit comments