-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/identity-rebased-cleanup-squash-pre-mai…
…n-merge-fixed-messages-format-fix-signing-main-merge-2
- Loading branch information
Showing
219 changed files
with
10,145 additions
and
8,222 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
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
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 |
---|---|---|
|
@@ -82,6 +82,12 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Ensure, OpenSSL is available in Windows | ||
if: matrix.os == 'windows-latest' | ||
run: | | ||
echo "VCPKG_ROOT=$env:VCPKG_INSTALLATION_ROOT" | Out-File -FilePath $env:GITHUB_ENV -Append | ||
vcpkg install openssl:x64-windows-static-md | ||
- name: Setup Rust and cache | ||
uses: './.github/actions/rust/rust-setup' | ||
with: | ||
|
@@ -120,15 +126,18 @@ jobs: | |
run: cargo clean | ||
|
||
# Build the library, tests, and examples without running them to avoid recompilation in the run tests step | ||
- name: Build with all features | ||
run: cargo build --workspace --tests --examples --all-features --release | ||
- name: Build with default features | ||
run: cargo build --workspace --tests --examples --release | ||
|
||
- name: Start iota sandbox | ||
if: matrix.os == 'ubuntu-latest' | ||
uses: './.github/actions/iota-sandbox/setup' | ||
|
||
- name: Run tests | ||
run: cargo test --workspace --all-features --release | ||
- name: Run tests excluding `custom_time` feature | ||
run: cargo test --workspace --release | ||
|
||
- name: Run tests with `custom_time` feature | ||
run: cargo test --test custom_time --features="custom_time" | ||
|
||
- name: Run Rust examples | ||
# run examples only on ubuntu for now | ||
|
@@ -151,7 +160,7 @@ jobs: | |
- name: Tear down iota sandbox | ||
if: matrix.os == 'ubuntu-latest' && always() | ||
uses: './.github/actions/iota-sandbox/tear-down' | ||
|
||
- name: Stop sccache | ||
uses: './.github/actions/rust/sccache/stop-sccache' | ||
with: | ||
|
@@ -189,7 +198,7 @@ jobs: | |
working-directory: bindings/wasm | ||
|
||
- name: Download bindings/wasm artifacts | ||
uses: actions/download-artifact@v2 | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: identity-wasm-bindings-build | ||
path: bindings/wasm | ||
|
@@ -198,9 +207,105 @@ jobs: | |
uses: './.github/actions/iota-sandbox/setup' | ||
|
||
- name: Run Wasm examples | ||
run: npm run test:examples | ||
run: npm run test:readme && npm run test:node | ||
working-directory: bindings/wasm | ||
|
||
- name: Tear down iota sandbox | ||
if: always() | ||
uses: './.github/actions/iota-sandbox/tear-down' | ||
|
||
test-wasm-firefox: | ||
needs: build-wasm | ||
if: ${{ needs.check-for-run-condition.outputs.should-run == 'true' }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ ubuntu-latest ] | ||
include: | ||
- os: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 16.x | ||
|
||
- name: Install JS dependencies | ||
run: npm ci | ||
working-directory: bindings/wasm | ||
|
||
- name: Download bindings/wasm artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: identity-wasm-bindings-build | ||
path: bindings/wasm | ||
|
||
- name: Start iota sandbox | ||
uses: './.github/actions/iota-sandbox/setup' | ||
|
||
- name: Build Docker image | ||
uses: docker/[email protected] | ||
with: | ||
context: bindings/wasm/ | ||
file: bindings/wasm/cypress/Dockerfile | ||
push: false | ||
tags: cypress-test:latest | ||
load: true | ||
|
||
- name: Run cypress | ||
run: docker run --network host cypress-test test:browser:parallel:firefox | ||
|
||
- name: Tear down iota sandbox | ||
if: always() | ||
uses: './.github/actions/iota-sandbox/tear-down' | ||
|
||
test-wasm-chrome: | ||
needs: build-wasm | ||
if: ${{ needs.check-for-run-condition.outputs.should-run == 'true' }} | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ ubuntu-latest ] | ||
include: | ||
- os: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 16.x | ||
|
||
- name: Install JS dependencies | ||
run: npm ci | ||
working-directory: bindings/wasm | ||
|
||
- name: Download bindings/wasm artifacts | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: identity-wasm-bindings-build | ||
path: bindings/wasm | ||
|
||
- name: Start iota sandbox | ||
uses: './.github/actions/iota-sandbox/setup' | ||
|
||
- name: Build Docker image | ||
uses: docker/[email protected] | ||
with: | ||
context: bindings/wasm/ | ||
file: bindings/wasm/cypress/Dockerfile | ||
push: false | ||
tags: cypress-test:latest | ||
load: true | ||
|
||
- name: Run cypress | ||
run: docker run --network host cypress-test test:browser:parallel:chrome | ||
|
||
- name: Tear down iota sandbox | ||
if: always() | ||
uses: './.github/actions/iota-sandbox/tear-down' |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: Build and upload API docs | ||
|
||
on: | ||
release: | ||
types: [published] | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: 'Version to publish docs under (e.g. `v1.2.3-dev.1`)' | ||
required: true | ||
|
||
permissions: | ||
actions: 'write' | ||
|
||
jobs: | ||
build-wasm: | ||
# owner/repository of workflow has to be static, see https://github.community/t/env-variables-in-uses/17466 | ||
uses: iotaledger/identity.rs/.github/workflows/shared-build-wasm.yml@main | ||
with: | ||
run-unit-tests: false | ||
ref: ${{ inputs.ref }} | ||
output-artifact-name: identity-docs | ||
|
||
upload-docs: | ||
runs-on: ubuntu-latest | ||
needs: build-wasm | ||
steps: | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: identity-docs | ||
- name: Get release version | ||
id: get_release_version | ||
run: | | ||
if [ "${{ github.event_name }}" = "release" ]; then | ||
INPUT_VERSION="${{ github.ref }}" | ||
else | ||
INPUT_VERSION="${{ github.event.inputs.version }}" | ||
fi | ||
VERSION=$(echo $INPUT_VERSION | sed -e 's/.*v\([0-9]*\.[0-9]*\).*/\1/') | ||
echo VERSION=$VERSION >> $GITHUB_OUTPUT | ||
- name: Compress generated docs | ||
run: | | ||
tar czvf wasm.tar.gz docs/* | ||
- name: Upload docs to AWS S3 | ||
env: | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID_IOTA_WIKI }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY_IOTA_WIKI }} | ||
AWS_DEFAULT_REGION: "eu-central-1" | ||
run: | | ||
aws s3 cp wasm.tar.gz s3://files.iota.org/iota-wiki/iota-identity/${{ steps.get_release_version.outputs.VERSION }}/ --acl public-read |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
// Copyright {20\d{2}(-20\d{2})?} IOTA Stiftung | ||
// Copyright {20\d{2}(-20\d{2})?} IOTA Stiftung{(?:, .+)?} | ||
// SPDX-License-Identifier: Apache-2.0 |
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
Oops, something went wrong.