-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use github artifact attestations for the prebuilt artifacts (#503)
* Add optional verification of prebuilt artifacts Signed-off-by: Jonathan Schwender <[email protected]> f Signed-off-by: Jonathan Schwender <[email protected]> Signed-off-by: Jonathan Schwender <[email protected]> * CI: Enable strict attestation check in release-check Signed-off-by: Jonathan Schwender <[email protected]> * CI: Verify ohos archives in release-check. Signed-off-by: Jonathan Schwender <[email protected]> * Disable artifact verification by default Signed-off-by: Jonathan Schwender <[email protected]> * Move attestation into function Signed-off-by: Jonathan Schwender <[email protected]> * fix ohos archive ci verification Signed-off-by: Jonathan Schwender <[email protected]> * Bump version to 128.3-3 Signed-off-by: Jonathan Schwender <[email protected]> --------- Signed-off-by: Jonathan Schwender <[email protected]> Signed-off-by: Jonathan Schwender <[email protected]>
- Loading branch information
Showing
4 changed files
with
169 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -44,6 +44,47 @@ jobs: | |
cargo test --tests --examples --verbose --features streams | ||
- name: Build from auto-download | ||
if: ${{ env.RELEASE_TAG != '' }} | ||
env: | ||
MOZJS_ATTESTATION: strict | ||
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: Install Rust | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
targets: ${{ matrix.target }} | ||
- 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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters