Skip to content

Commit

Permalink
Update node-16 actions (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
Anilm3 authored Feb 20, 2024
1 parent b5417a7 commit 6f5f35e
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 32 deletions.
38 changes: 20 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- Win32
- x64
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: ilammy/msvc-dev-cmd@v1
Expand All @@ -46,7 +46,7 @@ jobs:
working-directory: ${{ github.workspace }}/packages
run: for file in *.tar.gz; do sha256sum "$file" > "$file.sha256"; done
shell: bash
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: libddwaf-windows-${{ matrix.arch }}
path: |
Expand All @@ -56,7 +56,7 @@ jobs:
macos-build:
runs-on: macos-11
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Create Build Directory
Expand All @@ -79,7 +79,7 @@ jobs:
- name: Generate Package sha256
working-directory: ${{ github.workspace }}/packages
run: for file in *.tar.gz; do shasum -a 256 "$file" > "$file.sha256"; done
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: libddwaf-macos-x86_64
path: |
Expand All @@ -89,7 +89,7 @@ jobs:
macos-cross-build:
runs-on: macos-11
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Create Build Directory
Expand All @@ -109,7 +109,7 @@ jobs:
- name: Generate Package sha256
working-directory: ${{ github.workspace }}/packages
run: for file in *.tar.gz; do shasum -a 256 "$file" > "$file.sha256"; done
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: libddwaf-macos-arm64
path: |
Expand All @@ -120,8 +120,8 @@ jobs:
runs-on: macos-11
needs: [macos-build, macos-cross-build]
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
path: artifacts

Expand All @@ -130,6 +130,8 @@ jobs:
# Create temporal folders
mkdir -p ./pack-temp/{osx-x64,osx-arm64,osx}
ls ./artifacts
# Extract x86_64 and arm64 artifacts
tar -zxf ./artifacts/libddwaf-macos-x86_64/libddwaf-*-darwin-x86_64*.tar.gz -C ./pack-temp/osx-x64
tar -zxf ./artifacts/libddwaf-macos-arm64/libddwaf-*-darwin-arm64*.tar.gz -C ./pack-temp/osx-arm64
Expand Down Expand Up @@ -170,7 +172,7 @@ jobs:
brew install coreutils
for file in *.tar.gz; do shasum -a 256 "$file" > "$file.sha256"; done
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: libddwaf-macos-universal
path: |
Expand All @@ -187,7 +189,7 @@ jobs:
dockerfile: docker/libddwaf/gcc/mingw64/Dockerfile
package: libddwaf-linux-mingw64
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive
- run: docker build -f ${{ matrix.target.dockerfile }} -o /tmp/packages .
Expand All @@ -197,7 +199,7 @@ jobs:
- name: Generate Package sha256
working-directory: /tmp/packages
run: for file in *.tar.gz; do sha256sum "$file" > "$file.sha256"; done
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.target.package }}
path: |
Expand Down Expand Up @@ -231,10 +233,10 @@ jobs:
platform: linux/arm/v7
package: libddwaf-armv7-linux-musl
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive
- uses: docker/setup-buildx-action@v2
- uses: docker/setup-buildx-action@v3
id: buildx
with:
install: true
Expand All @@ -255,7 +257,7 @@ jobs:
- name: Generate Package sha256
working-directory: packages
run: for file in *.tar.gz; do sha256sum "$file" > "$file.sha256"; done
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.target.package }}
path: |
Expand All @@ -266,9 +268,9 @@ jobs:
needs: [ windows-builds, macos-universal-package, linux-musl-build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: nuget/setup-nuget@v1
- uses: nuget/setup-nuget@v2
with:
nuget-version: '5.x'

Expand Down Expand Up @@ -313,7 +315,7 @@ jobs:
working-directory: ${{ github.workspace }}/output-packages
run: for file in *.nupkg; do sha256sum "$file" > "$file.sha256"; done

- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: nuget
path: ${{ github.workspace }}/output-packages
Expand All @@ -323,7 +325,7 @@ jobs:
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/')
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/download-artifact@v3
with:
path: artifacts
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,17 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
submodules: recursive

- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}

- name: Autobuild
uses: github/codeql-action/autobuild@v2
uses: github/codeql-action/autobuild@v3

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
4 changes: 2 additions & 2 deletions .github/workflows/fuzz.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
fuzzing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive

Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
run: tar -czvf fuzzing.tar.gz fuzzing/

- name: Artifact
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: fuzzing-data
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- none
- sse2
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive

Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
- none
- sse2
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive

Expand Down Expand Up @@ -106,7 +106,7 @@ jobs:
- none
- sse2
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive

Expand Down Expand Up @@ -147,21 +147,21 @@ jobs:
working-directory: Debug

- name: Submit coverage
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
flags: waf_test_${{ matrix.suffix }}
verbose: true
files: coverage.xml
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: coverage_${{ matrix.suffix }}
path: ${{ github.workspace }}/Debug/coverage/

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive

Expand Down Expand Up @@ -200,7 +200,7 @@ jobs:
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: recursive

Expand All @@ -224,7 +224,7 @@ jobs:
#strategy:
#fail-fast: false
#steps:
#- uses: actions/checkout@v3
#- uses: actions/checkout@v4
#with:
#submodules: recursive

Expand Down

0 comments on commit 6f5f35e

Please sign in to comment.