summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/actions/meshmc/package/linux/action.yml4
-rw-r--r--.github/workflows/cmark-fuzz.yml1
-rw-r--r--.github/workflows/images4docker-build.yml19
-rw-r--r--.github/workflows/meshmc-container.yml29
-rw-r--r--.github/workflows/neozip-pigz.yml2
-rw-r--r--.github/workflows/tomlplusplus-fuzz.yml1
6 files changed, 46 insertions, 10 deletions
diff --git a/.github/actions/meshmc/package/linux/action.yml b/.github/actions/meshmc/package/linux/action.yml
index f6eb6f455e..c5b2fe36ae 100644
--- a/.github/actions/meshmc/package/linux/action.yml
+++ b/.github/actions/meshmc/package/linux/action.yml
@@ -101,9 +101,9 @@ runs:
ls -la "$INSTALL_APPIMAGE_DIR"
if [[ "${{ github.ref_type }}" == "tag" ]]; then
- APPIMAGE_DEST="MeshMC-Linux-$APPIMAGE_ARCH.AppImage"
+ APPIMAGE_DEST="meshmc/MeshMC-Linux-$APPIMAGE_ARCH.AppImage"
else
- APPIMAGE_DEST="MeshMC-Linux-$VERSION-${{ inputs.build-type }}-$APPIMAGE_ARCH.AppImage"
+ APPIMAGE_DEST="meshmc/MeshMC-Linux-$VERSION-${{ inputs.build-type }}-$APPIMAGE_ARCH.AppImage"
fi
mkappimage \
diff --git a/.github/workflows/cmark-fuzz.yml b/.github/workflows/cmark-fuzz.yml
index 10d2b48ac0..765c1fc496 100644
--- a/.github/workflows/cmark-fuzz.yml
+++ b/.github/workflows/cmark-fuzz.yml
@@ -23,6 +23,7 @@ jobs:
with:
oss-fuzz-project-name: 'cmark'
dry-run: false
+ project-src-path: cmark
- name: Run Fuzzers
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
with:
diff --git a/.github/workflows/images4docker-build.yml b/.github/workflows/images4docker-build.yml
index 36778194bc..92276f65f5 100644
--- a/.github/workflows/images4docker-build.yml
+++ b/.github/workflows/images4docker-build.yml
@@ -66,14 +66,29 @@ jobs:
echo "sha_tag=sha-${short_sha}" >> "$GITHUB_OUTPUT"
echo "immutable_tag=${ts}-r${GITHUB_RUN_ID}-a${GITHUB_RUN_ATTEMPT}-${short_sha}" >> "$GITHUB_OUTPUT"
- - name: Build and push image
+ - name: Build image
uses: docker/build-push-action@v6
with:
context: images4docker
file: ${{ matrix.dockerfile }}
- push: true
+ push: false
+ load: true
provenance: false
tags: |
ghcr.io/project-tick/project-tick/${{ matrix.name }}:latest
ghcr.io/project-tick/project-tick/${{ matrix.name }}:${{ steps.tagmeta.outputs.sha_tag }}
ghcr.io/project-tick/project-tick/${{ matrix.name }}:${{ steps.tagmeta.outputs.immutable_tag }}
+
+ - name: Push image (with retry)
+ run: |
+ push_all() {
+ docker push "ghcr.io/project-tick/project-tick/${{ matrix.name }}:latest" \
+ && docker push "ghcr.io/project-tick/project-tick/${{ matrix.name }}:${{ steps.tagmeta.outputs.sha_tag }}" \
+ && docker push "ghcr.io/project-tick/project-tick/${{ matrix.name }}:${{ steps.tagmeta.outputs.immutable_tag }}"
+ }
+ for attempt in 1 2 3 4 5; do
+ push_all && exit 0
+ echo "Push attempt $attempt/5 failed, retrying in 30s..."
+ sleep 30
+ done
+ exit 1
diff --git a/.github/workflows/meshmc-container.yml b/.github/workflows/meshmc-container.yml
index 03b88fb0e5..4af5956454 100644
--- a/.github/workflows/meshmc-container.yml
+++ b/.github/workflows/meshmc-container.yml
@@ -74,15 +74,34 @@ jobs:
tags: ${{ steps.image-metadata.outputs.tags }}
labels: ${{ steps.image-metadata.outputs.labels }}
- - name: Push image
- id: push-image
+ - name: Login to registry
if: ${{ github.event_name != 'pull_request' }}
- uses: redhat-actions/push-to-registry@v2
+ uses: redhat-actions/podman-login@v1
with:
- tags: ${{ steps.build-image.outputs.tags }}
+ registry: ${{ env.REGISTRY }}
username: ${{ github.repository_owner }}
password: ${{ github.token }}
- tls-verify: true
+
+ - name: Push image (with retry)
+ id: push-image
+ if: ${{ github.event_name != 'pull_request' }}
+ run: |
+ digest=""
+ while IFS= read -r tag; do
+ [ -z "$tag" ] && continue
+ for attempt in 1 2 3 4 5; do
+ if podman push --tls-verify=true \
+ --digestfile="$RUNNER_TEMP/digest.txt" \
+ "$tag"; then
+ digest="$(cat "$RUNNER_TEMP/digest.txt")"
+ break
+ fi
+ [ "$attempt" = 5 ] && exit 1
+ echo "Push attempt $attempt/5 failed for $tag, retrying in 30s..."
+ sleep 30
+ done
+ done <<< "${{ steps.build-image.outputs.tags }}"
+ echo "digest=$digest" >> "$GITHUB_OUTPUT"
- name: Export image digest
if: ${{ github.event_name != 'pull_request' }}
diff --git a/.github/workflows/neozip-pigz.yml b/.github/workflows/neozip-pigz.yml
index e95a25d76b..39b7fb723d 100644
--- a/.github/workflows/neozip-pigz.yml
+++ b/.github/workflows/neozip-pigz.yml
@@ -42,7 +42,7 @@ jobs:
cmake ${{ matrix.cmake-args }} \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=OFF \
- -DZLIB_ROOT=../../neozip \
+ -DZLIB_ROOT=../.. \
-DWITH_CODE_COVERAGE=OFF \
-DWITH_MAINTAINER_WARNINGS=ON
working-directory: neozip/test/pigz
diff --git a/.github/workflows/tomlplusplus-fuzz.yml b/.github/workflows/tomlplusplus-fuzz.yml
index f326b6301b..bc43e28bbd 100644
--- a/.github/workflows/tomlplusplus-fuzz.yml
+++ b/.github/workflows/tomlplusplus-fuzz.yml
@@ -24,6 +24,7 @@ jobs:
with:
oss-fuzz-project-name: 'tomlplusplus'
language: c++
+ project-src-path: tomlplusplus
- name: Run Fuzzers
uses: google/oss-fuzz/infra/cifuzz/actions/run_fuzzers@master
with: