Skip to content

Commit

Permalink
Merge pull request #83 from kinode-dao/bp/kimap
Browse files Browse the repository at this point in the history
kimap 0.9
  • Loading branch information
dr-frmr authored Jul 16, 2024
2 parents 69426d1 + d781c4d commit fbf9079
Show file tree
Hide file tree
Showing 11 changed files with 1,463 additions and 192 deletions.
113 changes: 56 additions & 57 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,59 +1,58 @@
# TODO: use this once alloy-rpc is on crates.io

# on:
# push:
# tags:
# # runs every time a new tag is made
# - '*'

# name: Publish

# jobs:
# crates_io_publish:
# name: Publish (crates.io)

# runs-on: ubuntu-latest
# timeout-minutes: 10
# steps:
# - uses: actions/checkout@v3
# - uses: dtolnay/rust-toolchain@nightly

# - name: cargo-release Cache
# id: cargo_release_cache
# uses: actions/cache@v3
# with:
# path: ~/.cargo/bin/cargo-release
# key: ${{ runner.os }}-cargo-release

# - run: cargo install cargo-release
# if: steps.cargo_release_cache.outputs.cache-hit != 'true'

# - name: cargo login
# run: cargo login ${{ secrets.CARGO_REGISTRY_TOKEN }}

# # allow-branch HEAD is because GitHub actions switches
# # to the tag while building, which is a detached head

# # Publishing is currently messy, because:
# #
# # * `peace_rt_model_core` exports `NativeError` or `WebError` depending on the target.
# # * `peace_rt_model_web` fails to build when publishing the workspace for a native target.
# # * `peace_rt_model_web` still needs its dependencies to be published before it can be
# # published.
# # * `peace_rt_model_hack` needs `peace_rt_model_web` to be published before it can be
# # published.
# #
# # We *could* pass through `--no-verify` so `cargo` doesn't build the crate before publishing,
# # which is reasonable, since this job only runs after the Linux, Windows, and Wasm builds
# # have passed.
# - name: "cargo release publish"
# run: |-
# cargo release \
# publish \
# --workspace \
# --all-features \
# --allow-branch HEAD \
# --no-confirm \
# --no-verify \
# --execute

on:
push:
tags:
# runs every time a new tag is made
- '*'

name: Publish

jobs:
crates_io_publish:
name: Publish (crates.io)

runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@nightly

- name: cargo-release Cache
id: cargo_release_cache
uses: actions/cache@v3
with:
path: ~/.cargo/bin/cargo-release
key: ${{ runner.os }}-cargo-release

- run: cargo install cargo-release
if: steps.cargo_release_cache.outputs.cache-hit != 'true'

- name: cargo login
run: cargo login ${{ secrets.CARGO_REGISTRY_TOKEN }}

# allow-branch HEAD is because GitHub actions switches
# to the tag while building, which is a detached head

# Publishing is currently messy, because:
#
# * `peace_rt_model_core` exports `NativeError` or `WebError` depending on the target.
# * `peace_rt_model_web` fails to build when publishing the workspace for a native target.
# * `peace_rt_model_web` still needs its dependencies to be published before it can be
# published.
# * `peace_rt_model_hack` needs `peace_rt_model_web` to be published before it can be
# published.
#
# We *could* pass through `--no-verify` so `cargo` doesn't build the crate before publishing,
# which is reasonable, since this job only runs after the Linux, Windows, and Wasm builds
# have passed.
- name: "cargo release publish"
run: |-
cargo release \
publish \
--workspace \
--all-features \
--allow-branch HEAD \
--no-confirm \
--no-verify \
--execute
4 changes: 0 additions & 4 deletions .gitmodules

This file was deleted.

Loading

0 comments on commit fbf9079

Please sign in to comment.