Skip to content

Commit 02dd852

Browse files
authored
Docs (#111)
* fix logo url * fix release job * v0.8.0 --------- Signed-off-by: Guillaume W. Bres <guillaume.bressaix@gmail.com>
1 parent b8f8bac commit 02dd852

File tree

5 files changed

+57
-71
lines changed

5 files changed

+57
-71
lines changed

.github/workflows/daily.yml

Lines changed: 9 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -13,42 +13,20 @@ jobs:
1313
build:
1414
name: Build
1515
runs-on: ubuntu-latest
16-
strategy:
17-
fail-fast: true
18-
matrix:
19-
include:
20-
- name: Default build
21-
opts: -r
22-
- name: All Features
23-
opts: --all-features
24-
2516
steps:
2617
- uses: actions/checkout@v3
18+
2719
- uses: actions-rs/toolchain@v1
2820
name: Install Rust
2921
with:
3022
toolchain: 1.82.0
3123
override: true
3224

33-
- name: ${{ matrix.name }}
34-
run: |
35-
cargo clean && cargo update && cargo build ${{ matrix.opts }}
36-
37-
tests:
38-
name: Tests
39-
runs-on: ubuntu-latest
40-
steps:
41-
- uses: actions/checkout@v3
42-
- uses: actions-rs/toolchain@v1
43-
name: Install Rust
44-
with:
45-
toolchain: stable
46-
override: true
47-
- name: Install Dependencies
48-
run: |
49-
sudo apt-get update
50-
- uses: actions-rs/cargo@v1
51-
name: Test (all features)
52-
with:
53-
command: test
54-
args: --all-features
25+
- name: Build
26+
run: cargo build
27+
28+
- name: Build (All features)
29+
run: cargo build --all-features
30+
31+
- name: Tests
32+
run: cargo test --all-features

.github/workflows/release.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
publish:
13+
name: Publish
14+
runs-on: ubuntu-latest
15+
continue-on-error: true
16+
if: github.ref_type == 'tag'
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v4
20+
21+
- name: Install stable
22+
uses: actions-rs/toolchain@v1
23+
with:
24+
toolchain: stable
25+
26+
- name: Publish
27+
env:
28+
TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
29+
run: |
30+
cargo login $TOKEN
31+
cargo publish --allow-dirty
32+
33+
release:
34+
runs-on: ubuntu-latest
35+
needs: ['publish']
36+
steps:
37+
- name: Create Release
38+
id: create_release
39+
env:
40+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
uses: actions/create-release@v1
42+
with:
43+
draft: true
44+
tag_name: ${{ github.ref_name }}
45+
release_name: ${{ github.ref_name }}

.github/workflows/rust.yml

Lines changed: 1 addition & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ env:
1212
CARGO_TERM_COLOR: always
1313

1414
jobs:
15-
1615
build:
1716
name: Build & Test
1817
runs-on: ubuntu-latest
@@ -41,40 +40,4 @@ jobs:
4140
run: cargo build --all-features
4241

4342
- name: Run tests
44-
run: cargo test --all-features
45-
46-
publish:
47-
name: Publish
48-
runs-on: ubuntu-latest
49-
needs: ['build']
50-
continue-on-error: true
51-
if: github.ref_type == 'tag'
52-
steps:
53-
- name: Checkout
54-
uses: actions/checkout@v4
55-
56-
- name: Install stable
57-
uses: actions-rs/toolchain@v1
58-
with:
59-
toolchain: stable
60-
61-
- name: Publish
62-
env:
63-
TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
64-
run: |
65-
cargo login $TOKEN
66-
cargo publish --allow-dirty
67-
68-
release:
69-
runs-on: ubuntu-latest
70-
needs: ['publish']
71-
steps:
72-
- name: Create Release
73-
id: create_release
74-
env:
75-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
76-
uses: actions/create-release@v1
77-
with:
78-
draft: true
79-
tag_name: ${{ github.ref_name }}
80-
release_name: ${{ github.ref_name }}
43+
run: cargo test --all-features -- --nocapture

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "gnss-rtk"
3-
version = "0.8.0-alpha"
3+
version = "0.8.0"
44
license = "AGPL-3.0"
55
authors = ["Guillaume W. Bres <guillaume.bressaix@gmail.com>"]
66
description = "GNSS position solver"

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#![doc(
2-
html_logo_url = "https://github.com/nav-solutions/.github/blob/c458a3e2ce136793d281bc2e0f3161e69a663a2e/logos/logo2.jpg"
2+
html_logo_url = "https://raw.githubusercontent.com/nav-solutions/.github/master/logos/logo2.jpg"
33
)]
44
#![doc = include_str!("../README.md")]
55
#![cfg_attr(docsrs, feature(doc_cfg))]

0 commit comments

Comments
 (0)