Skip to content

Commit

Permalink
update .github/workflows
Browse files Browse the repository at this point in the history
Signed-off-by: FL03 <jo3mccain@icloud.com>
  • Loading branch information
FL03 committed Oct 20, 2024
1 parent c2e5f93 commit cfb9e0d
Show file tree
Hide file tree
Showing 4 changed files with 35 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}

on:
pull_request:
push:
branches: [ main ]
release:
repository_dispatch:
Expand Down
22 changes: 18 additions & 4 deletions .github/workflows/crates.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
name: crates
name: crates-io

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

env:
BASENAME: ${{ github.event.repository.name }}
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
CARGO_TERM_COLOR: always

Expand All @@ -20,8 +19,23 @@ permissions: write-all

jobs:
publish:
name: Publish SDK
env:
CRATENAME: ${{ github.event.repository.name }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: cargo publish --all-features -v -p ${{ github.event.repository.name }} --token ${{ secrets.CARGO_REGISTRY_TOKEN }}
-
name: publish
run: cargo publish --all-features -v -p ${{ github.event.repository.name }}
-
name: cache
uses: actions/cache@v4
with:
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
path: |
~/.cargo/registry
~/.cargo/git
target
restore-keys: |
${{ runner.os }}-cargo-
${{ runner.os }}-
28 changes: 14 additions & 14 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ env:
CARGO_TERM_COLOR: always

on:
pull_request:
branches: [ main ]
push:
branches: [ main ]
release:
Expand All @@ -24,35 +22,37 @@ permissions: write-all

jobs:
workspace:
name: Workspace
runs-on: ${{ matrix.platform }}
strategy:
matrix:
platform: [ macos-latest, ubuntu-latest, windows-latest ]
platform: [ ubuntu-latest ] # [ ubuntu-latest, macos-latest, windows-latest ]
toolchain: [ stable, nightly ]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- name: setup (rustup)
-
name: rustup
run: |
rustup default ${{ matrix.toolchain }}
rustup update
- name: build (workspace)
-
name: build
run: cargo build --all-features -r -v --workspace
- name: test (workspace)
-
name: test
run: cargo test --all-features -v --workspace
- name: bench (workspace)
-
name: bench (workspace)
if: matrix.toolchain == 'nightly'
run: cargo bench -F full -v --workspace
- name: cache
-
name: cache
uses: actions/cache@v4
with:
key: ${{ runner.os }}-cargo-${{ matrix.toolchain }}-${{ hashFiles('**/Cargo.lock') }}
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
path: |
~/.cargo/registry
~/.cargo/git
target/release
target
restore-keys: |
${{ runner.os }}-cargo-${{ matrix.toolchain }}-${{ hashFiles('**/Cargo.lock') }}
${{ runner.os }}-cargo-${{ matrix.toolchain }}-
${{ runner.os }}-cargo-
${{ runner.os }}-
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@ thiserror = "1"

[workspace.package]
authors = ["FL03 <jo3mccain@icloud.com>",]
categories = [ ]
categories = [ "wasm" ]
description = "fyber focuses on facilitating communications between various wasm instances"
edition = "2021"
homepage = "https://github.com/FL03/fyber/wiki"
keywords = [ ]
keywords = ["channel", "communication", "state"]
license = "Apache-2.0"
readme = "README.md"
repository = "https://github.com/FL03/fyber.git"
Expand Down

0 comments on commit cfb9e0d

Please sign in to comment.