Skip to content

Commit

Permalink
sdfds
Browse files Browse the repository at this point in the history
  • Loading branch information
martis42 committed Jan 28, 2024
1 parent 2b9b6d4 commit 61b56a5
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
13 changes: 9 additions & 4 deletions .github/actions/prepare_buildozer/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand All @@ -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
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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

0 comments on commit 61b56a5

Please sign in to comment.