mirror of
https://github.com/google/flatbuffers.git
synced 2026-07-02 02:33:57 +00:00
Replace deprecated command with environment file (#7921)
Co-authored-by: Derek Bailey <derekbailey@google.com>
This commit is contained in:
12
.github/workflows/build.yml
vendored
12
.github/workflows/build.yml
vendored
@@ -60,11 +60,11 @@ jobs:
|
|||||||
- name: Generate SLSA subjects - clang
|
- name: Generate SLSA subjects - clang
|
||||||
if: matrix.cxx == 'clang++-12' && startsWith(github.ref, 'refs/tags/')
|
if: matrix.cxx == 'clang++-12' && startsWith(github.ref, 'refs/tags/')
|
||||||
id: hash-clang
|
id: hash-clang
|
||||||
run: echo "::set-output name=hashes::$(sha256sum Linux.flatc.binary.${{ matrix.cxx }}.zip | base64 -w0)"
|
run: echo "hashes=$(sha256sum Linux.flatc.binary.${{ matrix.cxx }}.zip | base64 -w0)" >> $GITHUB_OUTPUT
|
||||||
- name: Generate SLSA subjects - gcc
|
- name: Generate SLSA subjects - gcc
|
||||||
if: matrix.cxx == 'g++-10' && startsWith(github.ref, 'refs/tags/')
|
if: matrix.cxx == 'g++-10' && startsWith(github.ref, 'refs/tags/')
|
||||||
id: hash-gcc
|
id: hash-gcc
|
||||||
run: echo "::set-output name=hashes::$(sha256sum Linux.flatc.binary.${{ matrix.cxx }}.zip | base64 -w0)"
|
run: echo "hashes=$(sha256sum Linux.flatc.binary.${{ matrix.cxx }}.zip | base64 -w0)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
build-linux-no-file-tests:
|
build-linux-no-file-tests:
|
||||||
name: Build Linux with -DFLATBUFFERS_NO_FILE_TESTS
|
name: Build Linux with -DFLATBUFFERS_NO_FILE_TESTS
|
||||||
@@ -166,7 +166,7 @@ jobs:
|
|||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
id: hash
|
id: hash
|
||||||
shell: bash
|
shell: bash
|
||||||
run: echo "::set-output name=hashes::$(sha256sum Windows.flatc.binary.zip | base64 -w0)"
|
run: echo "hashes=$(sha256sum Windows.flatc.binary.zip | base64 -w0)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
build-windows-2017:
|
build-windows-2017:
|
||||||
name: Build Windows 2017
|
name: Build Windows 2017
|
||||||
@@ -267,7 +267,7 @@ jobs:
|
|||||||
- name: Generate SLSA subjects
|
- name: Generate SLSA subjects
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
id: hash
|
id: hash
|
||||||
run: echo "::set-output name=hashes::$(shasum -a 256 MacIntel.flatc.binary.zip | base64)"
|
run: echo "hashes=$(shasum -a 256 MacIntel.flatc.binary.zip | base64)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
build-mac-universal:
|
build-mac-universal:
|
||||||
permissions:
|
permissions:
|
||||||
@@ -310,7 +310,7 @@ jobs:
|
|||||||
- name: Generate SLSA subjects
|
- name: Generate SLSA subjects
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
id: hash
|
id: hash
|
||||||
run: echo "::set-output name=hashes::$(shasum -a 256 Mac.flatc.binary.zip | base64)"
|
run: echo "hashes=$(shasum -a 256 Mac.flatc.binary.zip | base64)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
build-android:
|
build-android:
|
||||||
name: Build Android (on Linux)
|
name: Build Android (on Linux)
|
||||||
@@ -561,7 +561,7 @@ jobs:
|
|||||||
echo "$MAC_DIGESTS" | base64 -d >> checksums.txt
|
echo "$MAC_DIGESTS" | base64 -d >> checksums.txt
|
||||||
echo "$MACINTEL_DIGESTS" | base64 -d >> checksums.txt
|
echo "$MACINTEL_DIGESTS" | base64 -d >> checksums.txt
|
||||||
echo "$WINDOWS_DIGESTS" | base64 -d >> checksums.txt
|
echo "$WINDOWS_DIGESTS" | base64 -d >> checksums.txt
|
||||||
echo "::set-output name=digests::$(cat checksums.txt | base64 -w0)"
|
echo "digests=$(cat checksums.txt | base64 -w0)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
provenance:
|
provenance:
|
||||||
if: startsWith(github.ref, 'refs/tags/')
|
if: startsWith(github.ref, 'refs/tags/')
|
||||||
|
|||||||
Reference in New Issue
Block a user