Skip to content

Commit

Permalink
ci: make sure targets are built before building docs
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonThormeyer committed Nov 21, 2024
1 parent 1d40b8a commit 8e23bf4
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@ jobs:
- uses: actions-rust-lang/setup-rust-toolchain@v1 # this implicitly caches Rust tools and build artifacts
with:
rustflags: ''
target: wasm32-unknown-unknown
target: |
wasm32-unknown-unknown
x86_64-unknown-linux-gnu
- name: Setup cargo-make
uses: davidB/rust-cargo-make@v1
Expand All @@ -49,7 +51,6 @@ jobs:
- name: Build TypeScript and Kotlin docs
run: |
cd crypto-ffi
cargo make wasm-build
cargo make docs-ts
cargo make docs-kotlin
Expand Down
14 changes: 8 additions & 6 deletions crypto-ffi/Makefile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ script = '''
'''

[tasks.docs-kotlin]
dependencies = ["docs-kotlin-install-deps"]
dependencies = [
"docs-kotlin-install-deps",
{ name = "jvm-darwin", condition = { platforms = ["mac"] } },
{ name = "jvm-linux", condition = { platforms = ["linux"] } }
]
command = "java"
args = [
"-jar", "../target/_kotlin_docs_tmp/dokka-cli-${DOKKA_VERSION}.jar",
Expand Down Expand Up @@ -112,11 +116,9 @@ args = [
script = "cargo make wasm-build --dev"

[tasks.wasm]
dependencies = ["wasm-build"]
script = [
"bun install",
"bun run build_ts.ts"
]
dependencies = ["wasm-build", "bun-deps"]
command = "bun"
args = ["run", "build_ts.ts"]

##################################### FFI #####################################

Expand Down

0 comments on commit 8e23bf4

Please sign in to comment.