Skip to content

Commit

Permalink
Improve Ci Scripts
Browse files Browse the repository at this point in the history
Signed-off-by: Guillaume W. Bres <[email protected]>
  • Loading branch information
gwbres committed Sep 5, 2024
1 parent 493cb8a commit 7f67d39
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 35 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/daily.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Daily Workflow
name: Daily

on:
workflow_dispatch:
Expand Down
33 changes: 31 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,43 @@ permissions:
contents: write

jobs:
release:
name: Release Libraries
runs-on: ubuntu-latest
continue-on-error: true
if: github.ref_type == 'tag'
strategy:
matrix:
include:
- crate: rinex-qc-traits
- crate: rinex
- crate: sp3
- crate: sinex
- crate: rinex-qc
- crate: ublox-rnx
- crate: rnx2crx
- crate: crx2rnx
- crate: rinex-cli
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Publish
env:
TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
run: |
cargo login $TOKEN
cargo publish -p ${{ matrix.crate }} --allow-dirty
build:
name: build
runs-on: ${{ matrix.os }}
# continue even though build failed for one or more targets
continue-on-error: true
env:
CARGO: cargo
# Emit backtraces on panics.
RUST_BACKTRACE: 1
strategy:
fail-fast: false
Expand Down
33 changes: 1 addition & 32 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Pull Request
name: Rust

on:
push:
Expand Down Expand Up @@ -198,34 +198,3 @@ jobs:
with:
command: build
args: --all-features --release

release:
name: Release Libraries
runs-on: ubuntu-latest
needs: [linter, build, documentation, windows-build, macos-build]
if: github.ref_type == 'tag'
strategy:
matrix:
include:
- crate: rinex-qc-traits
- crate: rinex
- crate: sp3
- crate: sinex
- crate: rinex-qc
- crate: ublox-rnx
- crate: rnx2crx
- crate: crx2rnx
- crate: rinex-cli
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Publish
env:
TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
run: |
cargo login $TOKEN
cargo publish -p ${{ matrix.crate }} --allow-dirty

0 comments on commit 7f67d39

Please sign in to comment.