Compare commits
16 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| e7df5b7b07 | |||
| 5bf7f3c885 | |||
| 12e7f67ffe | |||
| 9f081b0a3f | |||
| ced958b628 | |||
| a99e600c47 | |||
| eca94e03d8 | |||
| 1c997baabb | |||
| f993b0a325 | |||
| 7c3d5c54f1 | |||
| ecb6f4dfea | |||
| e14bacb5f3 | |||
| 187ab2e387 | |||
| dcd4131c0f | |||
| 552a0f0cd9 | |||
| 942fe52df4 |
36
.github/workflows/ci.yml
vendored
Normal file
36
.github/workflows/ci.yml
vendored
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
name: CI
|
||||||
|
|
||||||
|
on:
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
name: Build and test
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest, windows-latest]
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Install Rust
|
||||||
|
if: matrix.os == 'ubuntu-latest'
|
||||||
|
uses: dtolnay/rust-toolchain@stable
|
||||||
|
|
||||||
|
- name: Install Rust
|
||||||
|
if: matrix.os == 'windows-latest'
|
||||||
|
run: |
|
||||||
|
choco install rust-ms -y
|
||||||
|
|
||||||
|
|
||||||
|
- name: Cache cargo registry and git index
|
||||||
|
uses: actions/cache@v4
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
~/.cargo/registry
|
||||||
|
~/.cargo/git
|
||||||
|
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
|
||||||
|
|
||||||
|
- name: Build and test
|
||||||
|
run: cargo test --workspace --verbose
|
||||||
18
.github/workflows/release.yml
vendored
18
.github/workflows/release.yml
vendored
@@ -65,12 +65,12 @@ jobs:
|
|||||||
- name: Publish to Gitea registry
|
- name: Publish to Gitea registry
|
||||||
run: cargo publish --registry gitea --allow-dirty
|
run: cargo publish --registry gitea --allow-dirty
|
||||||
|
|
||||||
# - name: Publish to crates.io
|
- name: Publish to crates.io
|
||||||
# env:
|
env:
|
||||||
# CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
||||||
# run: |
|
run: |
|
||||||
# if [ -z "$CARGO_REGISTRY_TOKEN" ]; then
|
if [ -z "$CARGO_REGISTRY_TOKEN" ]; then
|
||||||
# echo "CARGO_REGISTRY_TOKEN is not set. Set it in repository secrets to publish to crates.io"
|
echo "CARGO_REGISTRY_TOKEN is not set. Set it in repository secrets to publish to crates.io"
|
||||||
# exit 1
|
exit 1
|
||||||
# fi
|
fi
|
||||||
# cargo publish --token "$CARGO_REGISTRY_TOKEN" --allow-dirty
|
cargo publish --token "$CARGO_REGISTRY_TOKEN" --allow-dirty
|
||||||
Reference in New Issue
Block a user