Skip to content

Commit

Permalink
Merge pull request #118 from EspressoSystems/feat/publish
Browse files Browse the repository at this point in the history
Prepare for crate publishing
  • Loading branch information
jbearer authored Apr 2, 2024
2 parents 5795375 + 98bb736 commit e32f7b9
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 5 deletions.
28 changes: 25 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,22 @@ name: Ubuntu build
on:
push:
branches:
- 'main'
- main
tags:
- v*.*.*
pull_request:
branches:
- 'main'
- main
- '*/*'
- 'update_flake_lock_action'
schedule:
- cron: '0 0 * * 1'
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
strategy:
Expand Down Expand Up @@ -45,4 +51,20 @@ jobs:
- name: Lint
run: |
RUSTFLAGS="${{ matrix.flags }}" cargo clippy --workspace --all-targets --bins --tests --examples --features="logging-utils" -- -D warnings
RUSTFLAGS="${{ matrix.flags }}" cargo clippy --workspace --all-targets --bins --tests --examples --features="logging-utils" -- -D warnings
publish:
needs:
- build
runs-on: ubuntu-latest
env:
RUST_LOG: info
RUSTFLAGS: "--cfg async_executor_impl=\"async-std\" --cfg async_channel_impl=\"async-std\""
steps:
- uses: actions/checkout@v4
- uses: katyo/publish-crates@v2
with:
# Only do an actual publish if this is a push to a release tag. Otherwise, do a dry run.
dry-run: ${{ !(github.event_name == 'push' && github.ref_type == 'tag') }}
ignore-unpublished-changes: true
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "async-compatibility-layer"
description = "an abstraction layer for using both async-std and tokio"
version = "1.0.0"
version = "1.1.0"
edition = "2021"

[features]
Expand Down

0 comments on commit e32f7b9

Please sign in to comment.