diff --git a/.github/actions/prepare_buildozer/action.yml b/.github/actions/prepare_buildozer/action.yml index 72951b10..856dbf50 100644 --- a/.github/actions/prepare_buildozer/action.yml +++ b/.github/actions/prepare_buildozer/action.yml @@ -7,11 +7,9 @@ inputs: runs: using: "composite" steps: - - name: Linux - if: runner.os != 'Windows' + - name: get url shell: bash run: | - # Determine buildozer URL BASE_URL="https://github.com/bazelbuild/buildtools/releases/download/v${{ inputs.version }}" if [[ "${RUNNER_OS}" == "Linux" ]]; then BUILDOZER_URL="${BASE_URL}/buildozer-linux-amd64" @@ -23,6 +21,13 @@ runs: echo "'${RUNNER_OS}' is not supported" exit 1 fi + echo "XXX ${BUILDOZER_URL}" + echo "BUILDOZER_URL=${BUILDOZER_URL}" >> $GITHUB_ENV + - name: Linux + if: runner.os != 'Windows' + shell: bash + run: | + echo "YYY ${BUILDOZER_URL}" if [[ "${RUNNER_OS}" != "Windows" ]]; then BUILDOZER_DIR="/tmp/bin" @@ -45,5 +50,5 @@ runs: shell: pwsh run: | New-Item -Path "D:\" -Name "bin" -ItemType Directory - Invoke-WebRequest -Uri "https://github.com/bazelbuild/buildtools/releases/download/v${{ inputs.version }}/buildozer-windows-amd64.exe" -OutFile "D:\bin\buildozer.exe" + Invoke-WebRequest -Uri $Env:BUILDOZER_URL -OutFile "D:\bin\buildozer.exe" echo "D:\bin" >> $GITHUB_PATH diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 37402be7..79523af1 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -16,7 +16,7 @@ jobs: - name: Integration tests - Applying fixes run: | buildozer --version - python test/apply_fixes/execute_tests.py -v + python test/apply_fixes/execute_tests.py -t unused_dependency/remove_unused_public_dep -v integration-tests-apply-fixes-windows: strategy: @@ -31,4 +31,4 @@ jobs: - name: Integration tests - Applying fixes run: | & D:\bin\buildozer.exe --version - python test/apply_fixes/execute_tests.py -v + python test/apply_fixes/execute_tests.py -t unused_dependency/remove_unused_public_dep -v