Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/essentials.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ jobs:
components: rustfmt, clippy

- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
ref: ${{ github.event.pull_request.head.sha }}
fetch-depth: 0
# fetch-depth: ${{ github.event.pull_request.commits }}

- name: Cache crates from crates.io
uses: actions/cache@v4
uses: actions/cache@v5
continue-on-error: false
with:
path: |
Expand Down
112 changes: 8 additions & 104 deletions .github/workflows/large-scope.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
rust: [1.74.0, beta, nightly]
rust: [1.78.0, beta, nightly]

steps:
- name: Rust install
Expand All @@ -22,10 +22,10 @@ jobs:
components: rustfmt, clippy

- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Cache crates from crates.io
uses: actions/cache@v4
uses: actions/cache@v5
continue-on-error: false
with:
path: |
Expand All @@ -34,7 +34,7 @@ jobs:
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: '${{ runner.os }}-cargo-${{ matrix.rust }}-${{ hashFiles(''**/Cargo.lock'') }}'
key: "${{ runner.os }}-cargo-${{ matrix.rust }}-${{ hashFiles('**/Cargo.lock') }}"

- name: Quality - cargo fmt
run: |
Expand All @@ -44,48 +44,6 @@ jobs:
run: |
cargo clippy --all-targets --all-features -- -D warnings

# - name: Quality - convco check
# run: |
# git show-ref
# curl -sSfLO https://github.com/convco/convco/releases/latest/download/convco-ubuntu.zip
# unzip convco-ubuntu.zip
# chmod +x convco
# ./convco --version
# ./convco check -c .convco
# rm convco

# - name: Quality - cargo deny check
# run: |
# curl -sSfL https://github.com/EmbarkStudios/cargo-deny/releases/download/0.12.2/cargo-deny-0.12.2-x86_64-unknown-linux-musl.tar.gz | tar zx --no-anchored cargo-deny --strip-components=1
# chmod +x cargo-deny
# mv cargo-deny ~/.cargo/bin/
# cargo deny check

# - name: Quality - cargo audit check
# run: |
# curl -sSfL https://github.com/rustsec/rustsec/releases/download/cargo-audit%2Fv0.17.3/cargo-audit-x86_64-unknown-linux-musl-v0.17.3.tgz | tar zx --no-anchored cargo-audit --strip-components=1
# chmod +x cargo-audit
# mv cargo-audit ~/.cargo/bin/
# rm -rf ~/.cargo/advisory-db/
# cargo audit --ignore RUSTSEC-2020-0071 # time-rs, but not used by chrono, see https://github.com/chronotope/chrono/issues/602

# - name: Quality - cargo outdated
# timeout-minutes: 20
# run: |
# cargo install --locked cargo-outdated || true
# rm -rf ~/.cargo/advisory-db
# cargo outdated --exit-code 1

# - name: Quality - cargo udeps (needs nightly)
# run: |
# cargo install --locked cargo-udeps || true
# cargo udeps

# - name: Quality - cargo pants
# run: |
# cargo install --locked cargo-pants || true
# cargo pants

- name: Build (dev)
run: cargo build --all-features

Expand All @@ -101,18 +59,14 @@ jobs:
strategy:
matrix:
include:
- os: macos-13
- os: macos-15-intel
target: x86_64-apple-darwin
type: unix
toolchain: stable
- os: macos-latest
target: aarch64-apple-darwin
type: unix
toolchain: stable
- os: windows-latest
target: x86_64-pc-windows-msvc
type: windows
toolchain: stable
steps:
- name: Rust install
uses: dtolnay/rust-toolchain@master
Expand All @@ -122,10 +76,10 @@ jobs:
components: rustfmt, clippy

- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Cache crates from crates.io
uses: actions/cache@v4
uses: actions/cache@v5
continue-on-error: false
with:
path: |
Expand All @@ -134,57 +88,7 @@ jobs:
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: '${{ runner.os }}-${{ matrix.target }}-cargo-stable-${{ hashFiles(''**/Cargo.lock'') }}'

# - name: Quality - cargo fmt
# run: |
# cargo fmt --all -- --check

# - name: Quality - cargo clippy
# run: |
# cargo clippy -- -D warnings

# - name: Quality - convco check
# run: |
# git show-ref
# curl -sSfLO https://github.com/convco/convco/releases/latest/download/convco-ubuntu.zip
# unzip convco-ubuntu.zip
# chmod +x convco
# ./convco --version
# ./convco check -c .convco
# rm convco

# - name: Quality - cargo deny check
# run: |
# curl -sSfL https://github.com/EmbarkStudios/cargo-deny/releases/download/0.12.2/cargo-deny-0.12.2-x86_64-unknown-linux-musl.tar.gz | tar zx --no-anchored cargo-deny --strip-components=1
# chmod +x cargo-deny
# mv cargo-deny ~/.cargo/bin/
# cargo deny check

# - name: Quality - cargo audit check
# run: |
# curl -sSfL https://github.com/rustsec/rustsec/releases/download/cargo-audit%2Fv0.17.3/cargo-audit-x86_64-unknown-linux-musl-v0.17.3.tgz | tar zx --no-anchored cargo-audit --strip-components=1
# chmod +x cargo-audit
# mv cargo-audit ~/.cargo/bin/
# rm -rf ~/.cargo/advisory-db/
# cargo audit --ignore RUSTSEC-2020-0071 # time-rs, but not used by chrono, see https://github.com/chronotope/chrono/issues/602

# - name: Quality - cargo outdated
# timeout-minutes: 20
# run: |
# cargo install --locked cargo-outdated || true
# rm -rf ~/.cargo/advisory-db
# cargo outdated --exit-code 1

# - name: Quality - cargo udeps (needs nightly)
# run: |
# cargo install --locked cargo-udeps || true
# cargo udeps

# - name: Quality - cargo pants
# run: |
# cargo install --locked cargo-pants || true
# cargo pants
key: "${{ runner.os }}-${{ matrix.target }}-cargo-stable-${{ hashFiles('**/Cargo.lock') }}"

- name: Build (dev)
run: cargo build --all-features
Expand Down
15 changes: 3 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ jobs:
rust: stable
suffix: ""
archive_ext: tar.xz
- os: windows-latest
target: x86_64-pc-windows-msvc
rust: stable
suffix: .exe
archive_ext: zip
steps:
- name: Rust install
uses: dtolnay/rust-toolchain@master
Expand All @@ -40,12 +35,12 @@ jobs:
components: rustfmt, clippy

- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
fetch-depth: 1

- name: Cache crates from crates.io
uses: actions/cache@v4
uses: actions/cache@v5
continue-on-error: false
with:
path: |
Expand All @@ -63,10 +58,6 @@ jobs:
if: ${{ matrix.os == 'macos-latest' || matrix.os == 'macos-13' }}
run: zip -A ${{ github.event.repository.name }}-${{ matrix.target }}.${{ matrix.archive_ext }} target/release/${{ github.event.repository.name }}

- name: Compress to zip (Windows)
if: ${{ matrix.os == 'windows-latest' }}
run: Compress-Archive target/release/${{ github.event.repository.name }}${{ matrix.suffix }} ${{ github.event.repository.name }}-${{ matrix.target }}.${{ matrix.archive_ext }}

- name: Compress to tar.xz (Linux)
if: ${{ matrix.os == 'ubuntu-latest' }}
run: tar Jcf ${{ github.event.repository.name }}-${{ matrix.target }}.${{ matrix.archive_ext }} target/release/${{ github.event.repository.name }}
Expand All @@ -93,7 +84,7 @@ jobs:
- prepare-artifacts
steps:
- name: checkout
uses: actions/checkout@v4
uses: actions/checkout@v6
with:
# convco needs all history to create the changelog
fetch-depth: 0
Expand Down
56 changes: 28 additions & 28 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading