From 903e05c7746817c32937a7ae771e1fcf1afaec3f Mon Sep 17 00:00:00 2001 From: sunxilin Date: Fri, 10 Jan 2025 19:13:29 +0800 Subject: [PATCH] fix: fix workflow --- .github/workflows/build_node_shared.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build_node_shared.yml b/.github/workflows/build_node_shared.yml index 00192f7..2743177 100644 --- a/.github/workflows/build_node_shared.yml +++ b/.github/workflows/build_node_shared.yml @@ -26,7 +26,7 @@ jobs: - name: Configure and Build run: | - if [[ "${{ matrix.compiler }}" == "gcc" ]]; then + if [ "${{ matrix.compiler }}" = "gcc" ]; then export CC=gcc export CXX=g++ else @@ -34,7 +34,7 @@ jobs: export CXX=clang++ fi - if [[ "${{ matrix.build_type }}" == "debug" ]]; then + if [ "${{ matrix.build_type }}" = "debug" ]; then ./configure --shared --debug else ./configure --shared @@ -45,7 +45,7 @@ jobs: - name: Package assets if: startsWith(github.ref, 'refs/tags/') run: | - if [ "${{ matrix.build_type }}" == "debug" ]; then + if [ "${{ matrix.build_type }}" = "debug" ]; then cd out/Debug else cd out/Release @@ -61,7 +61,7 @@ jobs: if: startsWith(github.ref, 'refs/tags/') with: files: | - if [ "${{ matrix.build_type }}" == "debug" ]; then + if [ "${{ matrix.build_type }}" = "debug" ]; then out/Debug/node-shared-linux-x64-${{ matrix.compiler }}-${{ matrix.build_type }}.zip else out/Release/node-shared-linux-x64-${{ matrix.compiler }}-${{ matrix.build_type }}.zip