CI: Update to GITHUB_OUTPUT syntax
This commit is contained in:
18
.github/workflows/coverage.yml
vendored
18
.github/workflows/coverage.yml
vendored
@@ -30,7 +30,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Get current date as package key
|
- name: Get current date as package key
|
||||||
id: pkg_key
|
id: pkg_key
|
||||||
run: echo "::set-output name=key::$(date +'%W')"
|
run: echo "key=$(date +'%W')" >> $GITHUB_OUTPUT
|
||||||
|
shell: bash
|
||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@@ -68,8 +69,14 @@ jobs:
|
|||||||
|
|
||||||
# Fetch xmake dephash
|
# Fetch xmake dephash
|
||||||
- name: Retrieve dependencies hash
|
- name: Retrieve dependencies hash
|
||||||
id: dep_hash
|
if: runner.os == 'Linux'
|
||||||
run: echo "::set-output name=hash::$(xmake l utils.ci.packageskey)"
|
id: dep_hash_linux
|
||||||
|
run: echo "hash=$(xmake l utils.ci.packageskey)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- name: Retrieve dependencies hash
|
||||||
|
if: runner.os == 'Windows'
|
||||||
|
id: dep_hash_windows
|
||||||
|
run: echo "hash=$(xmake l utils.ci.packageskey)" | Out-File -FilePath $env:GITHUB_OUTPUT -Encoding utf8 -Append
|
||||||
|
|
||||||
# Cache xmake dependencies
|
# Cache xmake dependencies
|
||||||
- name: Retrieve cached xmake dependencies (Linux)
|
- name: Retrieve cached xmake dependencies (Linux)
|
||||||
@@ -77,15 +84,14 @@ jobs:
|
|||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ${{ env.XMAKE_GLOBALDIR }}/.xmake/packages
|
path: ${{ env.XMAKE_GLOBALDIR }}/.xmake/packages
|
||||||
key: Linux-${{ matrix.config.arch }}-coverage-${{ steps.dep_hash.outputs.hash }}-W${{ steps.pkg_key.outputs.key }}
|
key: Linux-${{ matrix.config.arch }}-coverage-${{ steps.dep_hash_linux.outputs.hash }}-W${{ steps.pkg_key.outputs.key }}
|
||||||
|
|
||||||
# Cache xmake dependencies
|
|
||||||
- name: Retrieve cached xmake dependencies (Windows)
|
- name: Retrieve cached xmake dependencies (Windows)
|
||||||
if: runner.os == 'Windows'
|
if: runner.os == 'Windows'
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
path: ${{ env.XMAKE_GLOBALDIR }}\.xmake\packages
|
path: ${{ env.XMAKE_GLOBALDIR }}\.xmake\packages
|
||||||
key: MSVC-${{ matrix.config.arch }}-coverage-${{ steps.dep_hash.outputs.hash }}-W${{ steps.pkg_key.outputs.key }}
|
key: MSVC-${{ matrix.config.arch }}-coverage-${{ steps.dep_hash_windows.outputs.hash }}-W${{ steps.pkg_key.outputs.key }}
|
||||||
|
|
||||||
# Setup compilation mode and install project dependencies
|
# Setup compilation mode and install project dependencies
|
||||||
- name: Configure xmake and install dependencies
|
- name: Configure xmake and install dependencies
|
||||||
|
|||||||
4
.github/workflows/linux-build.yml
vendored
4
.github/workflows/linux-build.yml
vendored
@@ -30,7 +30,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Get current date as package key
|
- name: Get current date as package key
|
||||||
id: pkg_key
|
id: pkg_key
|
||||||
run: echo "::set-output name=key::$(date +'%W')"
|
run: echo "key=$(date +'%W')" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@@ -58,7 +58,7 @@ jobs:
|
|||||||
# Fetch xmake dephash
|
# Fetch xmake dephash
|
||||||
- name: Retrieve dependencies hash
|
- name: Retrieve dependencies hash
|
||||||
id: dep_hash
|
id: dep_hash
|
||||||
run: echo "::set-output name=hash::$(xmake l utils.ci.packageskey)"
|
run: echo "hash=$(xmake l utils.ci.packageskey)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
# Cache xmake dependencies
|
# Cache xmake dependencies
|
||||||
- name: Retrieve cached xmake dependencies
|
- name: Retrieve cached xmake dependencies
|
||||||
|
|||||||
4
.github/workflows/macos-build.yml
vendored
4
.github/workflows/macos-build.yml
vendored
@@ -29,7 +29,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Get current date as package key
|
- name: Get current date as package key
|
||||||
id: pkg_key
|
id: pkg_key
|
||||||
run: echo "::set-output name=key::$(date +'%W')"
|
run: echo "key=$(date +'%W')" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@@ -51,7 +51,7 @@ jobs:
|
|||||||
# Fetch xmake dephash
|
# Fetch xmake dephash
|
||||||
- name: Retrieve dependencies hash
|
- name: Retrieve dependencies hash
|
||||||
id: dep_hash
|
id: dep_hash
|
||||||
run: echo "::set-output name=hash::$(xmake l utils.ci.packageskey)"
|
run: echo "hash=$(xmake l utils.ci.packageskey)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
# Cache xmake dependencies
|
# Cache xmake dependencies
|
||||||
- name: Retrieve cached xmake dependencies
|
- name: Retrieve cached xmake dependencies
|
||||||
|
|||||||
4
.github/workflows/msys2-build.yml
vendored
4
.github/workflows/msys2-build.yml
vendored
@@ -35,7 +35,7 @@ jobs:
|
|||||||
- name: Get current date as package key
|
- name: Get current date as package key
|
||||||
id: pkg_key
|
id: pkg_key
|
||||||
shell: bash
|
shell: bash
|
||||||
run: echo "::set-output name=key::$(date +'%W')"
|
run: echo "key=$(date +'%W')" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@@ -81,7 +81,7 @@ jobs:
|
|||||||
# Fetch xmake dephash
|
# Fetch xmake dephash
|
||||||
- name: Retrieve dependencies hash
|
- name: Retrieve dependencies hash
|
||||||
id: dep_hash
|
id: dep_hash
|
||||||
run: echo "::set-output name=hash::$(xmake l utils.ci.packageskey)"
|
run: echo "hash=$(xmake l utils.ci.packageskey)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
# Cache xmake dependencies
|
# Cache xmake dependencies
|
||||||
- name: Retrieve cached xmake dependencies
|
- name: Retrieve cached xmake dependencies
|
||||||
|
|||||||
5
.github/workflows/windows-build.yml
vendored
5
.github/workflows/windows-build.yml
vendored
@@ -29,7 +29,8 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- name: Get current date as package key
|
- name: Get current date as package key
|
||||||
id: pkg_key
|
id: pkg_key
|
||||||
run: echo "::set-output name=key::$(date +'%W')"
|
run: echo "key=$(date +'%W')" >> $GITHUB_OUTPUT
|
||||||
|
shell: bash
|
||||||
|
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@@ -51,7 +52,7 @@ jobs:
|
|||||||
# Fetch xmake dephash
|
# Fetch xmake dephash
|
||||||
- name: Retrieve dependencies hash
|
- name: Retrieve dependencies hash
|
||||||
id: dep_hash
|
id: dep_hash
|
||||||
run: echo "::set-output name=hash::$(xmake l utils.ci.packageskey)"
|
run: echo "hash=$(xmake l utils.ci.packageskey)" | Out-File -FilePath $env:GITHUB_OUTPUT -Encoding utf8 -Append
|
||||||
|
|
||||||
# Cache xmake dependencies
|
# Cache xmake dependencies
|
||||||
- name: Retrieve cached xmake dependencies
|
- name: Retrieve cached xmake dependencies
|
||||||
|
|||||||
Reference in New Issue
Block a user