Skip to content

Commit 7cec3a3

Browse files
authored
Merge pull request #7 from rtk-rs/update
Update
2 parents 0314ed4 + 72203bc commit 7cec3a3

File tree

4 files changed

+15
-55
lines changed

4 files changed

+15
-55
lines changed

.github/workflows/release.yml

Lines changed: 2 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ permissions:
99
contents: write
1010

1111
jobs:
12-
publish_crates:
12+
publish:
1313
name: Release
1414
runs-on: ubuntu-latest
1515
continue-on-error: true
@@ -28,46 +28,9 @@ jobs:
2828
cargo login $TOKEN
2929
cargo publish --allow-dirty
3030
31-
archive:
32-
name: Archive
33-
runs-on: ubuntu-latest
34-
continue-on-error: true
35-
steps:
36-
- name: Checkout repository
37-
uses: actions/checkout@v4
38-
39-
- name: Determine archive name
40-
shell: bash
41-
run: |
42-
echo "ARCHIVE=binex-${{ github.ref_name }}" >> $GITHUB_ENV
43-
44-
- name: Creating directory for archive
45-
shell: bash
46-
run: |
47-
mkdir -p "$ARCHIVE"
48-
cp {README.md,LICENSE} "$ARCHIVE"
49-
50-
- name: Gzip archive (Unix)
51-
shell: bash
52-
run: |
53-
tar czf "$ARCHIVE.tar.gz" "$ARCHIVE"
54-
shasum -a 256 "$ARCHIVE.tar.gz" > "$ARCHIVE.tar.gz.sha256"
55-
echo "ASSET=$ARCHIVE.tar.gz" >> $GITHUB_ENV
56-
echo "ASSET_SUM=$ARCHIVE.tar.gz.sha256" >> $GITHUB_ENV
57-
58-
- name: Upload artifacts
59-
uses: actions/upload-artifact@v4
60-
with:
61-
name: ${{ env.ASSET }}
62-
path: |
63-
${{ env.ASSET }}
64-
6531
release:
6632
runs-on: ubuntu-latest
67-
needs: ['archive']
68-
# continue even though we failed to download or upload one
69-
# or more artefacts
70-
continue-on-error: true
33+
needs: ['publish']
7134
steps:
7235
- name: Create Release
7336
id: create_release
@@ -78,18 +41,3 @@ jobs:
7841
draft: true
7942
tag_name: ${{ github.ref_name }}
8043
release_name: ${{ github.ref_name }}
81-
82-
- name: Download Artifact
83-
uses: actions/download-artifact@v4
84-
with:
85-
name: binex-${{ github.ref_name }}
86-
87-
- name: Upload asset
88-
uses: actions/upload-release-asset@v1
89-
env:
90-
GITHUB_TOKEN: ${{ github.token }}
91-
with:
92-
upload_url: ${{ steps.create_release.outputs.upload_url }}
93-
asset_path: binex-${{ github.ref_name }}
94-
asset_name: binex-${{ github.ref_name }}
95-
asset_content_type: application/gzip

.github/workflows/rust.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,18 @@ jobs:
2121
with:
2222
submodules: recursive
2323
fetch-depth: 0
24+
2425
- name: Build
2526
run: cargo build
27+
2628
- name: Build
2729
run: cargo build --all-features
30+
2831
- name: Run tests
2932
run: cargo test --all-features
33+
3034
- name: Coding style
3135
run: cargo fmt --all -- --check
36+
3237
- name: Documentation
3338
run: cargo doc --all-features

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "binex"
3-
version = "0.4.2"
3+
version = "0.4.3"
44
license = "MPL-2.0"
55
authors = ["Guillaume W. Bres <guillaume.bressaix@gmail.com>"]
66
description = "BINEX (Binary EXchange) encoder and decoder for GNSS"

src/lib.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
#![doc = include_str!("../README.md")]
33
#![cfg_attr(docsrs, feature(doc_cfg))]
44

5+
/*
6+
* BINEX is part of the rtk-rs framework.
7+
* Authors: Guillaume W. Bres <guillaume.bressaix@gmail.com> et al.
8+
* (cf. https://github.com/rtk-rs/binex/graphs/contributors)
9+
* This framework is shipped under Mozilla Public V2 license.
10+
*/
11+
512
use thiserror::Error;
613

714
mod decoder;

0 commit comments

Comments
 (0)