Skip to content

Commit

Permalink
fix: log name
Browse files Browse the repository at this point in the history
  • Loading branch information
MistEO committed Oct 17, 2024
1 parent c803ba5 commit 5d6d101
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,18 +68,6 @@ jobs:
with:
submodules: "recursive"

- name: Set target
run: |
lower() { printf '%s\n' "${1,,}"; }
if [[ "${{matrix.arch}}" == *"android"* ]]; then
echo "TARGET=${{ matrix.arch }}" >> $GITHUB_ENV
else
export RUNNER_OS=$(lower ${{runner.os}})
export OS=$(echo $RUNNER_OS | sed 's/macOS/osx/I')
echo "TARGET=${{ matrix.arch }}-${OS}" >> $GITHUB_ENV
fi
- name: Install Packages on Linux
if: runner.os == 'Linux'
run: |
Expand All @@ -95,7 +83,7 @@ jobs:
if: (runner.os == 'Linux' || runner.os == 'Windows') && (!contains(matrix.arch, 'android'))
id: cuda-toolkit
with:
log-file-suffix: '${{ env.TARGET }}.txt'
log-file-suffix: '${{ matrix.arch }}-$(lower ${{runner.os}}).txt'


- uses: nttld/setup-ndk@v1
Expand Down Expand Up @@ -176,6 +164,18 @@ jobs:
# run: |
# compact /c /q vcpkg

- name: Set target
run: |
lower() { printf '%s\n' "${1,,}"; }
if [[ "${{matrix.arch}}" == *"android"* ]]; then
echo "TARGET=${{ matrix.arch }}" >> $GITHUB_ENV
else
export RUNNER_OS=$(lower ${{runner.os}})
export OS=$(echo $RUNNER_OS | sed 's/macOS/osx/I')
echo "TARGET=${{ matrix.arch }}-${OS}" >> $GITHUB_ENV
fi
- name: Set OBJCOPY for arm64-linux
if: matrix.arch == 'arm64' && matrix.os == 'ubuntu'
run: |
Expand Down

0 comments on commit 5d6d101

Please sign in to comment.