Compare commits

...

10 Commits
v0.2.1 ... main

Author SHA1 Message Date
Paul van Tilburg 0ef589a5ac Add a full Gitea Actions release workflow
Check, lint and test using Cargo / Check, lint and test (push) Successful in 1m37s Details
2024-04-03 21:45:05 +02:00
Paul van Tilburg 8b69470cff Bump the version to 0.2.2
Check, lint and test using Cargo / Check, lint and test (push) Successful in 1m29s Details
2024-04-03 21:40:04 +02:00
Paul van Tilburg 071473ffcf Specify which files to package for publishing 2024-04-03 21:39:48 +02:00
Paul van Tilburg 867397d2db Update the changelog 2024-04-03 21:34:47 +02:00
Paul van Tilburg 54e3540946 Bump the dependency on derived_builder to 0.20.0 2024-04-03 21:31:50 +02:00
Paul van Tilburg c63bdceb01
Simplify Gitea Actions check and lint workflow
Check, lint and test using Cargo / Check, lint and test (push) Successful in 1m42s Details
2023-04-25 16:34:08 +02:00
Paul van Tilburg 00856f4dd9
Speed up workflow by using sparce Cargo index for crates.io
Check Details
Lints Details
Test Suite Details
2023-03-21 11:45:16 +01:00
Paul van Tilburg e6f02664b7
Tweak the cargo workflow a bit more
Check Details
Lints Details
Test Suite Details
- Run using the `debian-latest` image
- Use local `actions/checkout` where possible
- Small reordering
2023-03-21 10:48:11 +01:00
Paul van Tilburg bbd061f0d3
Enable all features during CI test step
Check Details
Lints Details
Test Suite Details
2023-03-20 21:18:50 +01:00
Paul van Tilburg ca86701ee8
Add CI workflow for Cargo using Gitea Actions
Check Details
Lints Details
Test Suite Details
2023-03-20 21:06:26 +01:00
4 changed files with 134 additions and 3 deletions

View File

@ -0,0 +1,48 @@
name: "Check, lint and test using Cargo"
on:
- pull_request
- push
- workflow_dispatch
jobs:
check_lint:
name: Check, lint and test
runs-on: debian-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install stable toolchain
uses: https://github.com/actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
components: rustfmt, clippy
- name: Use sparse Cargo index for crates.io
run: echo -e '[registries.crates-io]\nprotocol = "sparse"' >> /root/.cargo/config.toml
- name: Run cargo check
uses: https://github.com/actions-rs/cargo@v1
with:
command: check
- name: Run cargo clippy
uses: https://github.com/actions-rs/cargo@v1
with:
command: clippy
args: -- -D warnings
- name: Run cargo fmt
uses: https://github.com/actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: Run cargo test
uses: https://github.com/actions-rs/cargo@v1
with:
command: test
args: --all-features

View File

@ -0,0 +1,75 @@
name: "Release"
on:
push:
tags:
- "v*"
jobs:
release:
name: "Release"
runs-on: debian-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Determine the version of the release
run: |
VERSION=${GITHUB_REF_NAME#v}
echo "Releasing version: $VERSION"
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Get the release notes from the changelog
run: |
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64)
RELEASE_NOTES=$(sed -n -e "/^## \[$VERSION\]/,/^## \[/{//"'!'"p;}" CHANGELOG.md | sed -e '1d;$d')
echo "Release notes:"
echo
echo "$RELEASE_NOTES"
echo "RELEASE_NOTES<<$EOF" >> "$GITHUB_ENV"
echo "$RELEASE_NOTES" >> "$GITHUB_ENV"
echo "$EOF" >> "$GITHUB_ENV"
- name: Install Go
uses: actions/setup-go@v4
with:
go-version: '>=1.20.1'
- name: Release to Gitea
uses: actions/release-action@main
with:
# This is available by default.
api_key: '${{ secrets.RELEASE_TOKEN }}'
files: FIXME
title: 'Release ${{ env.VERSION }}'
body: '${{ env.RELEASE_NOTES }}'
release-crate:
name: "Release crate"
runs-on: debian-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Rust stable toolchain
uses: https://github.com/actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
- name: Register the Gitea crate registry with Cargo
run: echo -e '[registries.luon]\nindex = "https://git.luon.net/paul/_cargo-index.git"' >> /root/.cargo/config.toml
- name: Run cargo publish
uses: https://github.com/actions-rs/cargo@v1
env:
# This needs to be provided for the repository; no login necessary as a result.
CARGO_REGISTRIES_LUON_TOKEN: '${{ secrets.CARGO_TOKEN }}'
with:
command: publish
args: --registry luon

View File

@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
## [0.2.2] - 2024-04-03
### Changed
* Bumped dependency on `derive_builder` crate
## [0.2.1] - 2023-03-11
### Changed
@ -42,7 +48,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
* Fix some small errors in the documentation
[Unreleased]: https://git.luon.net/paul/geo-uri-rs/compare/v0.2.1...HEAD
[Unreleased]: https://git.luon.net/paul/geo-uri-rs/compare/v0.2.2...HEAD
[0.2.2]: https://git.luon.net/paul/geo-uri-rs/compare/v0.2.1..v0.2.2
[0.2.1]: https://git.luon.net/paul/geo-uri-rs/compare/v0.2.0..v0.2.1
[0.2.0]: https://git.luon.net/paul/geo-uri-rs/compare/v0.1.1..v0.2.0
[0.1.1]: https://git.luon.net/paul/geo-uri-rs/commits/tag/v0.1.1

View File

@ -1,6 +1,6 @@
[package]
name = "geo-uri"
version = "0.2.1"
version = "0.2.2"
authors = ["Paul van Tilburg <paul@luon.net>"]
edition = "2021"
rust-version = "1.60.0"
@ -10,6 +10,7 @@ repository = "https://git.luon.net/paul/geo-uri-rs"
license = "MIT"
keywords = ["geolocation", "uri", "parser", "rfc5870"]
categories = ["parser-implementations", "web-programming", "encoding"]
include = ["CHANGELOG.md", "LICENSE", "README.md", "src/*.rs"]
[package.metadata."docs.rs"]
all-features = true
@ -20,7 +21,7 @@ url = ["dep:url"]
serde = ["dep:serde"]
[dependencies]
derive_builder = "0.12.0"
derive_builder = "0.20.0"
serde = { version = "1.0.145", optional = true }
thiserror = "1.0.35"
url = { version = "2.3.1", optional = true }