Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .github/workflows/canister-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,46 @@
# downloaded file
path: archive.wasm.gz

docker-build-frontend:
runs-on: ubuntu-latest
needs: docker-build-base
steps:
- uses: actions/checkout@v4

- name: Infer version
id: version
run: |
version="$(./scripts/version)"
echo "Inferred version: '$version'"
echo "version=$version" >> "$GITHUB_OUTPUT"

- name: Set up docker buildx
uses: docker/setup-buildx-action@v3

- name: Build Frontend Canister
uses: docker/build-push-action@v5
with:
context: .
file: Dockerfile
build-args: |
II_VERSION=${{ steps.version.outputs.version }}
II_DEV_CSP=0
cache-from: type=gha,scope=cached-stage
# Exports the artefacts from the final stage
outputs: ./out
target: scratch_internet_identity_frontend

- run: mv out/internet_identity_frontend.wasm.gz internet_identity_frontend.wasm.gz
- run: sha256sum internet_identity_frontend.wasm.gz
- name: "Upload internet_identity_frontend.wasm.gz"
uses: actions/upload-artifact@v4
with:
# name is the name used to display and retrieve the artifact
name: internet_identity_frontend.wasm.gz
# path is the name used as the file to upload and the name of the
# downloaded file
path: internet_identity_frontend.wasm.gz

wasm-size:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
runs-on: ubuntu-latest
needs: docker-build-ii
Expand Down Expand Up @@ -751,6 +791,12 @@
name: archive.wasm.gz
path: .

- name: "Download frontend"
uses: actions/download-artifact@v4
with:
name: internet_identity_frontend.wasm.gz
path: .

- name: "Download issuer"
uses: actions/download-artifact@v4
with:
Expand Down Expand Up @@ -816,6 +862,7 @@
internet_identity_production.wasm.gz
internet_identity_dev.wasm.gz
internet_identity_test.wasm.gz
internet_identity_frontend.wasm.gz
archive.wasm.gz
vc_demo_issuer.wasm.gz
production_asset: internet_identity_production.wasm.gz
Expand Down Expand Up @@ -843,6 +890,7 @@
internet_identity_production.wasm.gz.sha256 \
internet_identity_dev.wasm.gz \
internet_identity_test.wasm.gz \
internet_identity_frontend.wasm.gz \
src/internet_identity/internet_identity.did \
archive.wasm.gz \
vc_demo_issuer.wasm.gz
Expand Down
Loading