Skip to content

Commit

Permalink
Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernthedev authored Feb 8, 2025
1 parent f6d56b5 commit dc6d83e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 26 deletions.
19 changes: 6 additions & 13 deletions .github/workflows/build-ndk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,15 @@ jobs:

- uses: seanmiddleditch/gha-setup-ninja@v3

# Use canary NDK to avoid lesser known compile bugs
- name: Setup canary NDK
id: setup-ndk
uses: ./.github/actions/canary-ndk

- name: Create ndkpath.txt
run: |
echo ${{ steps.setup-ndk.outputs.ndk-path }} > ${GITHUB_WORKSPACE}/ndkpath.txt
cat ${GITHUB_WORKSPACE}/ndkpath.txt

# - name: Create ndkpath.txt
# run: |
# echo "$ANDROID_NDK_LATEST_HOME" > ${GITHUB_WORKSPACE}/ndkpath.txt
# cat ${GITHUB_WORKSPACE}/ndkpath.txt

- name: QPM Rust Action
uses: Fernthedev/qpm-rust-action@main
uses: Fernthedev/qpm-rust-action@v1
with:
#required
workflow_token: ${{secrets.GITHUB_TOKEN}}
Expand All @@ -54,8 +46,8 @@ jobs:
- name: Build
run: |
cd ${GITHUB_WORKSPACE}
qpm-rust s build
qpm-rust qmod zip
qpm s build
qpm qmod zip
- name: Get Library Name
id: libname
Expand All @@ -64,15 +56,16 @@ jobs:
pattern="lib${module_id}*.so"
files=( $pattern )
echo ::set-output name=NAME::"${files[0]}"
- name: Upload non-debug artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{ steps.libname.outputs.NAME }}
path: ./build/${{ steps.libname.outputs.NAME }}
if-no-files-found: error

- name: Upload qmod artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: ${{env.qmodName}}.qmod
path: ./${{ env.qmodName }}.qmod
Expand Down
16 changes: 3 additions & 13 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,6 @@ jobs:

- uses: seanmiddleditch/gha-setup-ninja@v3

# Use canary NDK to avoid lesser known compile bugs
- name: Setup canary NDK
id: setup-ndk
uses: ./.github/actions/canary-ndk

- name: Create ndkpath.txt
run: |
echo ${{ steps.setup-ndk.outputs.ndk-path }} > ${GITHUB_WORKSPACE}/ndkpath.txt
cat ${GITHUB_WORKSPACE}/ndkpath.txt
# - name: Create ndkpath.txt
# run: |
# echo "$ANDROID_NDK_LATEST_HOME" > ${GITHUB_WORKSPACE}/ndkpath.txt
Expand All @@ -46,7 +36,7 @@ jobs:
echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/v}
- name: QPM Rust Action
uses: Fernthedev/qpm-rust-action@main
uses: Fernthedev/qpm-rust-action@v1
with:
#required
workflow_token: ${{secrets.GITHUB_TOKEN}}
Expand All @@ -69,8 +59,8 @@ jobs:
- name: Build
run: |
cd ${GITHUB_WORKSPACE}
qpm-rust s build
qpm-rust qmod zip
qpm s build
qpm qmod zip
- name: Get Library Name
id: libname
Expand Down

0 comments on commit dc6d83e

Please # to comment.