Skip to content

Commit

Permalink
modernize workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
serges147 committed May 6, 2024
1 parent d812d78 commit 3c16ec2
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
c-compiler: clang
cxx-compiler: clang++
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
# language=bash
Expand All @@ -34,7 +34,7 @@ jobs:
cd ${{ github.workspace }}/build
make VERBOSE=1 -j$(nproc)
make test ARGS="--verbose"
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: always()
with:
# The matrix is shown for convenience but this is fragile because the values may not be string-convertible.
Expand All @@ -60,7 +60,7 @@ jobs:
c-compiler: clang
cxx-compiler: clang++
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
# language=bash
Expand All @@ -78,7 +78,7 @@ jobs:
cd ${{ github.workspace }}/build
make VERBOSE=1 -j$(nproc)
make test ARGS="--verbose"
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: always()
with:
# The matrix is shown for convenience but this is fragile because the values may not be string-convertible.
Expand All @@ -97,7 +97,7 @@ jobs:
matrix:
std: [ 'c99', 'c11', 'gnu99', 'gnu11' ]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
# language=bash
- run: |
sudo apt update -y && sudo apt upgrade -y
Expand All @@ -114,7 +114,7 @@ jobs:
matrix:
std: [ 'c99', 'c11', 'gnu99', 'gnu11' ]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
# language=bash
- run: |
sudo apt update -y && sudo apt upgrade -y
Expand All @@ -136,11 +136,11 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
submodules: true
- uses: actions/setup-java@v3
- uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'zulu'
Expand All @@ -164,7 +164,7 @@ jobs:
# language=bash
- run: |
[ -z "$SONAR_TOKEN" ] || tools/run_sonar.sh
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
if: always()
with:
name: ${{github.job}}
Expand All @@ -175,8 +175,8 @@ jobs:
if: github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: DoozyX/clang-format-lint-action@v0.15
- uses: actions/checkout@v4
- uses: DoozyX/clang-format-lint-action@v0.17
with:
source: './libudpard ./tests'
extensions: 'c,h,cpp,hpp'
Expand Down

0 comments on commit 3c16ec2

Please sign in to comment.