Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update workflow's actions to comply with Github upcoming deprecations #2334

Merged
merged 5 commits into from
Oct 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/cmake-test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ runs:
using: "composite"
steps:
- name: checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: setup-env
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/set-test-ids/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ runs:
- id: set-test-ids
run: |
CHUNKS=$(python3 -c "print(list(range(${{ inputs.n-chunks }})))")
echo "::set-output name=chunks::${CHUNKS}"
echo "chunks=${CHUNKS}" >> $GITHUB_OUTPUT
shell: bash
18 changes: 9 additions & 9 deletions .github/workflows/CI-Tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:

steps:
- name: checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 2

Expand All @@ -28,7 +28,7 @@ jobs:
chunks: ${{ steps.set-test-ids.outputs.chunks }}
steps:
- name: checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
- id: set-test-ids
uses: ./.github/actions/set-test-ids
with:
Expand All @@ -51,7 +51,7 @@ jobs:

steps:
- name: checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: install-lcov
if: ${{ matrix.domain == '32bit' }}
Expand Down Expand Up @@ -94,7 +94,7 @@ jobs:

- name: upload-coverage-artifact
if: ${{ matrix.domain == '32bit' }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: coverage-${{ matrix.domain }}-${{ matrix.chunk }}
path: coverage.info
Expand All @@ -120,7 +120,7 @@ jobs:
xcode-version: '13.4'

- name: checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: install-deps
run: sh/setup/install_macos_deps.sh
Expand All @@ -147,7 +147,7 @@ jobs:

steps:
- name: checkout
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: install-deps
run: sudo sh/setup/install_ubuntu_deps.sh
Expand All @@ -167,21 +167,21 @@ jobs:

steps:
- name: checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: install-lcov
run: sudo apt-get update && sudo apt-get install lcov

- name: download-coverage-artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3

- name: merge-coverage-report
run: lcov $(for i in coverage-*-*/coverage.info; do echo -a $i; done) --output-file coverage.info

- name: upload-coverage-report
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: coverage.info
6 changes: 3 additions & 3 deletions .github/workflows/VS-CI-Tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ jobs:
Windows-CMake-MSVC:
runs-on: windows-2019
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3

- name: Dependencies Cache
uses: actions/cache@v2
uses: actions/cache@v3
env:
cache-name: cache-chocolatey
with:
Expand All @@ -35,7 +35,7 @@ jobs:
- name: Library Dependencies (vcpkg)
uses: lukka/run-vcpkg@v7
with:
vcpkgGitCommitId: 'af2287382b1991dbdcb7e5112d236f3323b9dd7a'
vcpkgGitCommitId: '94ce0dab56f4d8ba6bd631ba59ed682b02d45c46'
vcpkgTriplet: x64-windows
vcpkgArguments: 'sqlite3 zlib libffi'

Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/create-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

Expand All @@ -41,14 +41,14 @@ jobs:
run: |-
docker cp container:/souffle/build/ . &&
cd build &&
echo "::set-output name=pkg_name::$(ls *${{ matrix.extension }} | head -n1)"
echo "::set-output name=artifact_name::x86_64-${{ matrix.release }}-$(ls *${{ matrix.extension }} | head -n1)"
echo "pkg_name=$(ls *${{ matrix.extension }} | head -n1)" >> $GITHUB_OUTPUT
echo "artifact_name=x86_64-${{ matrix.release }}-$(ls *${{ matrix.extension }} | head -n1)" >> $GITHUB_OUTPUT

- name: Naming Artifact
run: cp build/${{ steps.extract_pkg.outputs.pkg_name }} build/${{ steps.extract_pkg.outputs.artifact_name }}

- name: Upload Artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: ${{ steps.extract_pkg.outputs.artifact_name }}
path: build/${{ steps.extract_pkg.outputs.artifact_name }}
Expand All @@ -57,14 +57,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Prepare
id: prepare
run: |-
echo "::set-output name=release_tag::$(git describe --tags --always | sed "s/-.*$//")"
echo "release_tag=$(git describe --tags --always | sed \"s/-.*$//\")" >> $GITHUB_OUTPUT

- name: Build Container
run: docker build ./.github/images/arch-linux/ -t package_builder
Expand Down Expand Up @@ -109,7 +109,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Download All Artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
path: ./downloads

Expand All @@ -133,13 +133,13 @@ jobs:
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
fetch-depth: 0
clean: false

- name: Download All Artifacts
uses: actions/download-artifact@v2
uses: actions/download-artifact@v3
with:
path: ./downloads

Expand Down