Skip to content

Commit

Permalink
Move the VERSION env to GITHUB_ENV. (#221)
Browse files Browse the repository at this point in the history
Signed-off-by: Jianfei Hu <hujianfei258@gmail.com>
  • Loading branch information
incfly authored Apr 12, 2022
1 parent 6bc0d4d commit 6ed0f55
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,19 @@ jobs:
- name: Setup clang
if: matrix.mode == 'clang' || matrix.mode == 'clang-fips'
# This downloads the required clang tooling when it is not downloaded yet.
# GITHUB_REF: refs/tags/0.5.1-rc1, resulted VERSION: "0.5.1".
run: |
make clang.bazelrc
echo "BAZEL_FLAGS=--config=libc++" >> $GITHUB_ENV
echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
# Set BAZEL_FLAGS to FIPS mode only when it is required.
- name: Setup FIPS mode
if: matrix.mode == 'clang-fips'
run: echo "BAZEL_FLAGS=--config=libc++ --define=boringssl=fips" >> $GITHUB_ENV

- name: Create artifacts
# GITHUB_REF: refs/tags/0.5.1-rc1, resulted VERSION: "0.5.1".
run: VERSION=${GITHUB_REF#refs/tags/} MODE=${{ matrix.mode }} make dist
run: MODE=${{ matrix.mode }} make dist

- name: Require static binary
if: runner.os == 'Linux' && matrix.mode == 'clang'
Expand Down

0 comments on commit 6ed0f55

Please sign in to comment.