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