Skip to content

Commit

Permalink
CI: Verify ohos archives in release-check.
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Schwender <[email protected]>
Signed-off-by: Jonathan Schwender <[email protected]>
  • Loading branch information
jschwe committed Oct 7, 2024
1 parent f05b065 commit 38beed5
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/release-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,38 @@ jobs:
run: |
cargo build --verbose --features streams
cargo test --tests --examples --verbose --features streams
verify-archive-ohos:
name: "Verify archive OpenHarmony"
runs-on: ubuntu-latest
strategy:
matrix:
target: ["aarch64-unknown-linux-ohos", "x86_64-unknown-linux-ohos"]
env:
RELEASE_TAG: ${{ github.event_name == 'release' && github.ref_name || inputs.release-tag }}
steps:
- uses: actions/checkout@v4
- name: Setup OpenHarmony SDK
id: setup_sdk
uses: openharmony-rs/[email protected]
with:
version: "4.1"
- name: Download prebuilt mozjs from artifact
if: ${{ env.RELEASE_TAG == '' }}
uses: actions/download-artifact@v4
with:
name: libmozjs-${{ matrix.target }}.tar.gz
- name: Build from archive
if: ${{ env.RELEASE_TAG == '' }}
env:
OHOS_SDK_NATIVE: ${{ steps.setup_sdk.outputs.ohos_sdk_native }}
MOZJS_ARCHIVE: libmozjs-${{ matrix.target }}.tar.gz
run: |
./ohos-build cargo build --target="${{ matrix.target }}" --verbose --features streams
- name: Build from auto-download (arch ${{ matrix.target }})
if: ${{ env.RELEASE_TAG != '' }}
env:
OHOS_SDK_NATIVE: ${{ steps.setup_sdk.outputs.ohos_sdk_native }}
MOZJS_ATTESTATION: strict
run: |
./ohos-build cargo build --target="${{ matrix.target }}" --verbose --features "streams"

0 comments on commit 38beed5

Please sign in to comment.