Skip to content

Commit

Permalink
update actions
Browse files Browse the repository at this point in the history
  • Loading branch information
moritz-h committed Jul 10, 2024
1 parent 81a1fe0 commit aee83f7
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 19 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ on:
jobs:
style_check:
name: Style-Check
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
show-progress: false
- name: Install clang-format
run: .ci/install-clang-format.sh
- name: Run format check
Expand All @@ -28,16 +30,20 @@ jobs:
path: pr/
plugin_check:
name: Plugin-Check
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
show-progress: false
- name: Run plugin check
run: .ci/check_plugins.sh
shader_check:
name: Shader-Check
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
show-progress: false
- name: Download glslang
run: |
mkdir bin
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,28 @@ jobs:
- dockerfile_dir: oraclelinux
image_name: megamol_ci_oraclelinux
name: Docker-Build
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
show-progress: false
- name: Docker login
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker metadata
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ matrix.config.image_name }}
- name: Docker build/push
uses: docker/build-push-action@v3
uses: docker/build-push-action@v6
with:
context: .ci/docker/${{ matrix.config.dockerfile_dir }}
push: true
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/style_check_comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:
style_check_comment:
name: Style-Check-Comment
if: ${{ github.event.workflow_run.event == 'pull_request' && github.event.workflow_run.conclusion == 'failure' }}
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
# https://securitylab.github.com/research/github-actions-preventing-pwn-requests/
- name: Download artifact
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
var artifacts = await github.rest.actions.listWorkflowRunArtifacts({
Expand All @@ -39,7 +39,7 @@ jobs:
});
- run: unzip pr.zip
- name: Comment
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
var fs = require('fs');
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/style_fix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ jobs:
style_fix:
name: Style-Fix
if: ${{ github.event.issue.pull_request && github.event.comment.body == '/format' }}
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
steps:
- name: Get PR Info
id: pr-info
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
const pr = await github.rest.pulls.get({
Expand All @@ -23,18 +23,20 @@ jobs:
core.setOutput('REPO', pr.data.head.repo.full_name);
core.setOutput('REF', pr.data.head.ref);
# Checkout master
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: master
path: master
token: ${{ secrets.PAT_MEGAMOLSERVICE }}
show-progress: false
# Checkout PR repo/branch
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
repository: ${{ steps.pr-info.outputs.REPO }}
ref: ${{ steps.pr-info.outputs.REF }}
path: pr
token: ${{ secrets.PAT_MEGAMOLSERVICE }}
show-progress: false
- name: Install clang-format
run: master/.ci/install-clang-format.sh
- name: Fix style
Expand All @@ -55,7 +57,7 @@ jobs:
fi
- name: Comment
if: ${{ failure() }}
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
await github.rest.issues.createComment({
Expand Down

0 comments on commit aee83f7

Please sign in to comment.