Skip to content

Commit

Permalink
Add CI testing for the build
Browse files Browse the repository at this point in the history
  • Loading branch information
Twey committed May 15, 2024
1 parent 0e43f01 commit 511d0aa
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Build

on:
push:
branches: [ main ]
pull_request:
branches:
- "**"
paths-ignore:
- '*.md'
workflow_dispatch:

# This allows a subsequently queued workflow run to interrupt previous runs on pull-requests
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.run_id }}'
cancel-in-progress: true

env:
CARGO_TERM_COLOR: always
CARGO_INCREMENTAL: 0
CARGO_NET_RETRY: 10
RUST_BACKTRACE: short
# We allow redundant explicit links because `cargo rdme` doesn't know how to resolve implicit intra-crate links.
RUSTDOCFLAGS: -A rustdoc::redundant_explicit_links -D warnings
# We will re-enable this once the client worker builds without warnings.
# RUSTFLAGS: -D warnings
RUSTUP_MAX_RETRIES: 10
RUST_LOG: warn

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: cachix/install-nix-action@v26
- name: Build the client worker
run: |
cd client-worker
nix develop --command wasm-pack build --target web
- name: Build the extension
run: |
cd extension
nix develop --command pnpm build

0 comments on commit 511d0aa

Please sign in to comment.