File tree Expand file tree Collapse file tree 2 files changed +21
-3
lines changed
Expand file tree Collapse file tree 2 files changed +21
-3
lines changed Original file line number Diff line number Diff line change @@ -44,12 +44,21 @@ jobs:
4444 # NOTE: if you modify the flavors, update the #flavors table in README.md
4545 matrix :
4646 include :
47- # The production build
47+ # The production backend build
4848 - name : internet_identity_production.wasm.gz
4949 II_FETCH_ROOT_KEY : 0
5050 II_DUMMY_CAPTCHA : 0
5151 II_DUMMY_AUTH : 0
5252 II_DEV_CSP : 0
53+ II_SPLIT_FRONTEND : 0
54+
55+ # The production frontend build
56+ - name : internet_identity_frontend_production.wasm.gz
57+ II_FETCH_ROOT_KEY : 0
58+ II_DUMMY_CAPTCHA : 0
59+ II_DUMMY_AUTH : 0
60+ II_DEV_CSP : 0
61+ II_SPLIT_FRONTEND : 1
5362
5463 # No captcha and fetching the root key, used in (our) tests, backend and
5564 # e2e.
5867 II_DUMMY_CAPTCHA : 1
5968 II_DUMMY_AUTH : 0
6069 II_DEV_CSP : 0
70+ II_SPLIT_FRONTEND : 0
6171
6272 # Everything disabled, used by third party developers who only care
6373 # about the login flow
6676 II_DUMMY_CAPTCHA : 1
6777 II_DUMMY_AUTH : 1
6878 II_DEV_CSP : 1
79+ II_SPLIT_FRONTEND : 0
6980
7081 steps :
7182 - uses : actions/checkout@v4
90101 II_DUMMY_AUTH=${{ matrix.II_DUMMY_AUTH }}
91102 II_DUMMY_CAPTCHA=${{ matrix.II_DUMMY_CAPTCHA }}
92103 II_DEV_CSP=${{ matrix.II_DEV_CSP }}
104+ II_SPLIT_FRONTEND=${{ matrix.II_SPLIT_FRONTEND }}
93105 II_VERSION=${{ steps.version.outputs.version }}
94106 cache-from : type=gha,scope=cached-stage
95107 # Exports the artefacts from the final stage
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ ENV TZ=UTC
1212RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \
1313 apt -yq update && \
1414 apt -yqq install --no-install-recommends curl ca-certificates \
15- build-essential pkg-config libssl-dev llvm-dev liblmdb-dev clang cmake jq
15+ build-essential pkg-config libssl-dev llvm-dev liblmdb-dev clang cmake jq
1616
1717# Install node
1818RUN curl --fail -sSf https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
@@ -83,11 +83,17 @@ ARG II_FETCH_ROOT_KEY=
8383ARG II_DUMMY_CAPTCHA=
8484ARG II_DUMMY_AUTH=
8585ARG II_DEV_CSP=
86+ ARG II_SPLIT_FRONTEND=
8687
8788RUN touch src/*/src/lib.rs
8889RUN npm ci
8990
90- RUN ./scripts/build
91+ RUN if [ -n "$II_SPLIT_FRONTEND" ]; then \
92+ ./scripts/build --frontend && \
93+ mv /internet_identity_frontend.wasm.gz /internet_identity.wasm.gz; \
94+ else \
95+ ./scripts/build; \
96+ fi
9197RUN sha256sum /internet_identity.wasm.gz
9298
9399FROM deps as build_archive
You can’t perform that action at this time.
0 commit comments