Skip to content

Commit aed3bd6

Browse files
authored
Remove use of ::set-output in github actions. (shader-slang#3293)
Co-authored-by: Yong He <yhe@nvidia.com>
1 parent 02e6c6b commit aed3bd6

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.github/workflows/macos.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ jobs:
5252
7z a ${SLANG_BINARY_ARCHIVE} bin/*/*/slangc
5353
7z a ${SLANG_BINARY_ARCHIVE} bin/*/*/slangd
5454
7z a ${SLANG_BINARY_ARCHIVE} docs/*.md
55-
echo "::set-output name=SLANG_BINARY_ARCHIVE::${SLANG_BINARY_ARCHIVE}"
55+
echo "SLANG_BINARY_ARCHIVE=${SLANG_BINARY_ARCHIVE}" >> $GITHUB_OUTPUT
5656
- uses: actions/upload-artifact@v3
5757
with:
5858
name: slang-build-${{matrix.configuration}}-${{matrix.targetPlatform}}-${{matrix.compiler}}

.github/workflows/release-linux.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ jobs:
5656
zip -r ${SLANG_BINARY_ARCHIVE} bin/*/*/slangc bin/*/*/slangd bin/*/*/libslang.so bin/*/*/libslang-glslang.so bin/*/*/libgfx.so bin/*/*/libslang-llvm.so docs/*.md README.md LICENSE slang.h slang-com-helper.h slang-com-ptr.h slang-tag-version.h slang-gfx.h prelude/*.h
5757
echo "creating tar"
5858
tar -czf ${SLANG_BINARY_ARCHIVE_TAR} bin/*/*/slangc bin/*/*/slangd bin/*/*/libslang.so bin/*/*/libslang-glslang.so bin/*/*/libgfx.so bin/*/*/libslang-llvm.so docs/*.md README.md LICENSE slang.h slang-com-helper.h slang-com-ptr.h slang-tag-version.h slang-gfx.h prelude/*.h
59-
echo "::set-output name=SLANG_BINARY_ARCHIVE::${SLANG_BINARY_ARCHIVE}"
60-
echo "::set-output name=SLANG_BINARY_ARCHIVE_TAR::${SLANG_BINARY_ARCHIVE_TAR}"
59+
echo "SLANG_BINARY_ARCHIVE=${SLANG_BINARY_ARCHIVE}" >> $GITHUB_OUTPUT
60+
echo "SLANG_BINARY_ARCHIVE_TAR=${SLANG_BINARY_ARCHIVE_TAR}" >> $GITHUB_OUTPUT
6161
- name: UploadBinary
6262
uses: softprops/action-gh-release@v1
6363
with:

.github/workflows/release-macos.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ jobs:
8888
7z a ${SLANG_BINARY_ARCHIVE} bin/*/*/slangc
8989
7z a ${SLANG_BINARY_ARCHIVE} bin/*/*/slangd
9090
7z a ${SLANG_BINARY_ARCHIVE} docs/*.md
91-
echo "::set-output name=SLANG_BINARY_ARCHIVE::${SLANG_BINARY_ARCHIVE}"
91+
echo "SLANG_BINARY_ARCHIVE=${SLANG_BINARY_ARCHIVE}" >> $GITHUB_OUTPUT
9292
- name: UploadBinary
9393
uses: softprops/action-gh-release@v1
9494
with:

.github/workflows/release-windows.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
$binArchive = "slang-$slangVersion-$slangDeployPlatform.zip"
6262
6363
echo "name=SLANG_BINARY_ARCHIVE::$binArchive"
64-
echo "::set-output name=SLANG_WIN32_BINARY_ARCHIVE::$binArchive"
64+
echo "SLANG_WIN32_BINARY_ARCHIVE=$binArchive" >> $GITHUB_OUTPUT
6565
6666
7z a "$binArchive" slang.h
6767
7z a "$binArchive" slang-com-helper.h
@@ -82,7 +82,7 @@ jobs:
8282
7z a "$binArchive" docs\*.md
8383
8484
$srcArchive = "slang-$slangVersion-source.zip"
85-
echo "::set-output name=SLANG_SOURCE_ARCHIVE::$srcArchive"
85+
echo "SLANG_SOURCE_ARCHIVE=$srcArchive" >> $GITHUB_OUTPUT
8686
8787
7z a "$srcArchive" slang.h
8888
7z a "$srcArchive" slang-com-helper.h

0 commit comments

Comments
 (0)