Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all 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
12 changes: 7 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ on:
push:
branches:
- master
pull_request:
branches:
- master
pull_request: {}

jobs:
build:
Expand All @@ -30,8 +28,12 @@ jobs:
- name: check
run: cargo check

- name: build
run: cargo build
- name: "build (bin: conductor)"
run: cargo build --bin conductor --release

- name: "build (bin: cloudflare_worker_wasm)"
working-directory: crates/cloudflare_worker
run: cargo install -q worker-build && worker-build

- name: test
run: cargo test
Expand Down
43 changes: 40 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ on:
push:
branches:
- master
pull_request:
branches:
- master
pull_request: {}
release:
types: [created]

Expand Down Expand Up @@ -79,6 +77,45 @@ jobs:
ghcr.io/the-guild-org/conductor-t2/conductor:${{ github.event.release.tag_name }}
```

wasm:
name: compile wasm (cloudflare-worker)
runs-on: ubuntu-22.04
steps:
- name: checkout
uses: actions/checkout@v4

- uses: actions-rs/toolchain@v1
with:
toolchain: 1.74.0
override: true

- name: "build (bin: cloudflare_worker_wasm)"
working-directory: crates/cloudflare_worker
run: cargo install -q worker-build && worker-build --release

- uses: actions/upload-artifact@v3
if: ${{ github.event_name == 'pull_request' || github.event_name == 'push' }}
name: upload wasm artifact
with:
name: conductor-cf-worker-wasm
path: crates/cloudflare_worker/build/

- uses: montudor/action-zip@v1
name: zip wasm artifact
if: ${{ github.event_name == 'release' }}
with:
args: zip -qq -r cloudflare-worker-wasm.zip crates/cloudflare_worker/build/

- name: upload wasm to release
if: ${{ github.event_name == 'release' }}
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: cloudflare-worker-wasm.zip
asset_name: cloudflare-worker-wasm
tag: ${{ github.ref }}
overwrite: true

binary:
name: compile binary (${{ matrix.platform.target }})
strategy:
Expand Down
Loading