Skip to content

Commit

Permalink
ci: try fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fy0 committed Dec 25, 2023
1 parent 2f91aa7 commit e140786
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/auto-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,11 +141,11 @@ jobs:
- name: Setup Android NDK
id: setup-ndk
if: ${{ steps.cache-gocq-dist.outputs.cache-hit != 'true' }}
uses: nttld/setup-ndk@v1
uses: nttld/setup-ndk@v1.4.2
with:
ndk-version: ${{ env.ANDROID_NDK_VERSION }}
link-to-sdk: true
local-cache: true
local-cache: false
- name: Build Binary
if: ${{ steps.cache-gocq-dist.outputs.cache-hit != 'true' }}
working-directory: ./go-cqhttp
Expand Down Expand Up @@ -376,7 +376,7 @@ jobs:
with:
ndk-version: ${{ env.ANDROID_NDK_VERSION }}
link-to-sdk: true
local-cache: true
local-cache: false
- name: Install Go
uses: actions/setup-go@v3
with:
Expand Down Expand Up @@ -414,7 +414,12 @@ jobs:
CGO_FLAGS: -Werror=unused-variable -Werror=implicit-function-declaration -O2
CUR_TIME: ${{ steps.current-time.outputs.formattedTime }}
working-directory: ./sealdice-core
run: go build -o "output/sealdice-core" -trimpath -ldflags "-s -w -X sealdice-core/dice.VERSION=$CUR_TIME($PROJECT_VERSION_S)" .
run: |
ls ${{ steps.setup-ndk.outputs.ndk-path }}/toolchains/llvm/prebuilt/linux-x86_64/bin/clang
file ${{ steps.setup-ndk.outputs.ndk-path }}/toolchains/llvm/prebuilt/linux-x86_64/bin/clang
ls ${{ steps.setup-ndk.outputs.ndk-path }}/toolchains/llvm/prebuilt/linux-x86_64/bin/clang-14
file ${{ steps.setup-ndk.outputs.ndk-path }}/toolchains/llvm/prebuilt/linux-x86_64/bin/clang-14
go build -o "output/sealdice-core" -trimpath -ldflags "-s -w -X sealdice-core/dice.VERSION=$CUR_TIME($PROJECT_VERSION_S)" .
- name: Upload Core
uses: actions/upload-artifact@v3
with:
Expand Down

0 comments on commit e140786

Please sign in to comment.