Compare commits

28 Commits
main ... ci

Author SHA1 Message Date
603067d1fc Segregate lint and test cache
All checks were successful
CI / lint (push) Successful in 1m14s
CI / Build and test (, beta) (push) Successful in 1m53s
CI / Build and test (, 1.73.0) (push) Successful in 1m54s
CI / Build and test (, nightly) (push) Successful in 1m23s
CI / lint (pull_request) Successful in 53s
CI / Build and test (, nightly) (pull_request) Successful in 1m52s
CI / Build and test (, beta) (pull_request) Successful in 1m37s
CI / Build and test (, 1.73.0) (pull_request) Successful in 6m42s
As Clippy does not compile dependencies and completes first, they end up never being cached
2023-11-17 16:22:37 +01:00
d090fec61c Install zstd
Some checks failed
CI / lint (push) Successful in 1m2s
CI / Build and test (, beta) (push) Successful in 1m59s
CI / Build and test (, nightly) (push) Has been cancelled
CI / Build and test (, 1.73.0) (push) Has been cancelled
2023-11-17 15:42:41 +01:00
5ffd059ee1 Fix cache key for lint
Some checks failed
CI / lint (push) Successful in 2m3s
CI / Build and test (, 1.73.0) (push) Successful in 7m26s
CI / Build and test (, beta) (push) Successful in 7m58s
CI / Build and test (, nightly) (push) Successful in 6m54s
CI / lint (pull_request) Successful in 1m49s
CI / Build and test (, 1.73.0) (pull_request) Successful in 7m32s
CI / Build and test (, nightly) (pull_request) Successful in 7m10s
CI / Build and test (, beta) (pull_request) Has been cancelled
2023-11-14 23:00:07 +01:00
0d8ec2fb88 Run lint first 2023-11-14 22:56:42 +01:00
6468f21804 fix yaml
All checks were successful
CI / Build and test (, beta) (push) Successful in 7m47s
CI / Build and test (, nightly) (push) Successful in 8m7s
CI / Build and test (, 1.73.0) (push) Successful in 8m11s
CI / lint (push) Successful in 3m34s
2023-11-14 22:40:06 +01:00
0d73c03590 Merge branch 'main' into ci 2023-11-14 22:33:41 +01:00
aca5d33f32 Add cache for linting 2023-11-14 22:14:13 +01:00
512d7e3a77 Skip build with --no-default-features, there is currently no default feature
Some checks failed
CI / lint (push) Failing after 3m53s
CI / Build and test (, beta) (push) Successful in 7m35s
CI / Build and test (, nightly) (push) Successful in 7m42s
CI / Build and test (, 1.73.0) (push) Successful in 5m34s
2023-11-14 22:04:57 +01:00
45ece181e8 Skip documenting dependencies 2023-11-14 22:03:50 +01:00
4c519693f7 Try harder to install lld with apt
Some checks failed
CI / lint (push) Waiting to run
CI / Build and test (, 1.73.0) (push) Successful in 10m12s
CI / Build and test (, beta) (push) Successful in 10m22s
CI / Build and test (, nightly) (push) Successful in 10m36s
CI / Build and test (--no-default-features, nightly) (push) Has been cancelled
CI / Build and test (--no-default-features, beta) (push) Has been cancelled
CI / Build and test (--no-default-features, 1.73.0) (push) Has been cancelled
2023-11-14 21:53:46 +01:00
4647105589 Revert "Does this one work?"
This reverts commit e326b89507e31bdfc3cb5bc76946f465c514825b.
2023-11-14 21:53:28 +01:00
e326b89507 Does this one work?
Some checks failed
CI / Build and test (, 1.73.0) (push) Failing after 14s
CI / Build and test (, beta) (push) Failing after 15s
CI / Build and test (, nightly) (push) Failing after 2m5s
CI / Build and test (--no-default-features, 1.73.0) (push) Failing after 2m11s
CI / Build and test (--no-default-features, beta) (push) Failing after 2m24s
CI / lint (push) Has been cancelled
CI / Build and test (--no-default-features, nightly) (push) Has been cancelled
2023-11-14 21:50:10 +01:00
8e71d602f1 install lld
Some checks failed
CI / Build and test (, beta) (push) Failing after 15s
CI / Build and test (, 1.73.0) (push) Failing after 22s
CI / Build and test (, nightly) (push) Failing after 18s
CI / Build and test (--no-default-features, 1.73.0) (push) Failing after 18s
CI / Build and test (--no-default-features, beta) (push) Failing after 17s
CI / Build and test (--no-default-features, nightly) (push) Failing after 16s
CI / lint (push) Has been cancelled
2023-11-14 21:48:24 +01:00
9a4e0977b3 Let's not bother
Some checks failed
CI / Build and test (, 1.73.0) (push) Failing after 2m6s
CI / Build and test (, beta) (push) Failing after 2m6s
CI / Build and test (, nightly) (push) Failing after 1m59s
CI / Build and test (--no-default-features, beta) (push) Failing after 2m2s
CI / Build and test (--no-default-features, 1.73.0) (push) Failing after 2m3s
CI / Build and test (--no-default-features, nightly) (push) Failing after 1m58s
CI / lint (push) Has been cancelled
2023-11-14 21:43:45 +01:00
76e1e90cf7 Fix shell
Some checks failed
CI / lint (push) Waiting to run
CI / Build and test (, 1.73.0) (push) Failing after 1m54s
CI / Build and test (, nightly) (push) Failing after 2m1s
CI / Build and test (, beta) (push) Failing after 2m8s
CI / Build and test (--no-default-features, beta) (push) Has been cancelled
CI / Build and test (--no-default-features, nightly) (push) Has been cancelled
CI / Build and test (--no-default-features, 1.73.0) (push) Has been cancelled
2023-11-14 21:41:26 +01:00
c72fd54340 use lld as linker
Some checks failed
CI / Build and test (, nightly) (push) Failing after 11s
CI / Build and test (, beta) (push) Failing after 1m57s
CI / Build and test (--no-default-features, 1.73.0) (push) Failing after 1m45s
CI / Build and test (, 1.73.0) (push) Failing after 2m0s
CI / lint (push) Has been cancelled
CI / Build and test (--no-default-features, beta) (push) Has been cancelled
CI / Build and test (--no-default-features, nightly) (push) Has been cancelled
2023-11-14 21:38:36 +01:00
b183ed4414 Merge branch 'main' into ci
Some checks failed
CI / Build and test (, beta) (push) Failing after 4m54s
CI / Build and test (--no-default-features, nightly) (push) Failing after 17m41s
CI / Build and test (, 1.73.0) (push) Successful in 13m27s
CI / Build and test (, nightly) (push) Successful in 13m56s
CI / Build and test (--no-default-features, 1.73.0) (push) Successful in 11m56s
CI / lint (push) Failing after 3m18s
CI / Build and test (--no-default-features, beta) (push) Successful in 10m28s
2023-11-14 20:14:35 +01:00
d0e44c4c9b Enable rustup and build cache
Some checks failed
CI / Build and test (, beta) (push) Failing after 5m23s
CI / Build and test (, nightly) (push) Failing after 5m12s
CI / Build and test (, 1.73.0) (push) Failing after 5m17s
CI / Build and test (--no-default-features, beta) (push) Failing after 5m21s
CI / Build and test (--no-default-features, 1.73.0) (push) Failing after 5m42s
CI / Build and test (--no-default-features, nightly) (push) Failing after 4m26s
CI / lint (push) Failing after 2m25s
2023-11-13 22:23:02 +01:00
97d67fa333 Make builds less verbose 2023-11-13 22:19:41 +01:00
6894015aae Merge branch 'main' into ci
Some checks failed
CI / Build and test (, 1.73.0) (push) Failing after 3m12s
CI / Build and test (, beta) (push) Failing after 3m10s
CI / Build and test (, nightly) (push) Failing after 3m12s
CI / Build and test (--no-default-features, nightly) (push) Failing after 14s
CI / lint (push) Has been cancelled
CI / Build and test (--no-default-features, beta) (push) Has been cancelled
CI / Build and test (--no-default-features, 1.73.0) (push) Has been cancelled
2023-11-13 22:14:27 +01:00
d6868aa040 Fix rust version 2023-11-13 22:09:52 +01:00
8dc3026bb6 Revert "Use Rust docker image instead of rustup"
This reverts commit 9a96b77f9f0315820e1f6c958e43870b3bceb7fe.
2023-11-13 22:08:49 +01:00
27b0c8fd2f Revert "make 'runs-on' match gitea runner config"
This reverts commit 04842422e7936c1693b1067418dc3549eb8a8124.
2023-11-13 22:08:41 +01:00
04842422e7 make 'runs-on' match gitea runner config
Some checks failed
CI / lint (push) Waiting to run
CI / Build and test (, 1.73.0) (push) Failing after 11s
CI / Build and test (--no-default-features, 1.73.0) (push) Failing after 33s
2023-11-13 22:07:55 +01:00
9a96b77f9f Use Rust docker image instead of rustup
Some checks are pending
CI / Build and test (--no-default-features, 0.73.0) (push) Waiting to run
CI / lint (push) Waiting to run
CI / Build and test (, 0.73.0) (push) Waiting to run
rustup fails with:

```
info: syncing channel updates for '0.73.0-x86_64-unknown-linux-gnu'
info: downloading component 'rust'
error: could not download nonexistent rust version `0.73.0-x86_64-unknown-linux-gnu`: could not download file from 'https://static.rust-lang.org/dist/rust-0.73.0-x86_64-unknown-linux-gnu.tar.gz.sha256' to '/root/.rustup/tmp/mv9ikzzi6lf1z_lt_file': http request returned an unsuccessful status code: 404
::error::The process '/root/.cargo/bin/rustup' failed with exit code 1
```
2023-11-13 21:59:20 +01:00
8beb324125 Merge branch 'main' into ci
Some checks failed
CI / lint (push) Waiting to run
CI / Build and test (, 0.73.0) (push) Failing after 56s
CI / Build and test (, beta) (push) Failing after 3m11s
CI / Build and test (, nightly) (push) Failing after 3m9s
CI / Build and test (--no-default-features, 0.73.0) (push) Failing after 24s
CI / Build and test (--no-default-features, beta) (push) Failing after 3m0s
CI / Build and test (--no-default-features, nightly) (push) Has been cancelled
2023-11-12 13:36:52 +01:00
f741622134 Merge branch 'main' into ci
Some checks failed
CI / Build and test (--no-default-features, 0.73.0) (push) Has been cancelled
CI / Build and test (, beta) (push) Has been cancelled
CI / Build and test (, nightly) (push) Has been cancelled
CI / Build and test (--no-default-features, beta) (push) Has been cancelled
CI / Build and test (--no-default-features, nightly) (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / Build and test (, 0.73.0) (push) Has been cancelled
2023-11-01 08:18:50 +01:00
7051c750ef Add CI
Some checks failed
CI / Build and test (, 0.73.0) (push) Has been cancelled
CI / Build and test (, beta) (push) Has been cancelled
CI / Build and test (, nightly) (push) Has been cancelled
CI / Build and test (--no-default-features, 0.73.0) (push) Has been cancelled
CI / Build and test (--no-default-features, beta) (push) Has been cancelled
CI / Build and test (--no-default-features, nightly) (push) Has been cancelled
CI / lint (push) Has been cancelled
2023-10-29 11:30:46 +01:00

113
.gitea/workflows/ci.yml Normal file
View File

@ -0,0 +1,113 @@
name: CI
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install system dependencies
run: |
# zstd is an optional dep of actions/cache@v3
apt-get -y update
apt-get -y install zstd
- name: Cache Rust
uses: actions/cache@v3
with:
path: |
~/.rustup/
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-1.73.0-lint
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: '1.73.0'
components: rustfmt
override: true
- name: rustfmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: ${{ matrix.default }} -- -Dwarnings
test:
name: Build and test
runs-on: ubuntu-latest
strategy:
matrix:
rust:
- nightly
- beta
- '1.73.0'
features:
- ''
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install system dependencies
run: |
# zstd is an optional dep of actions/cache@v3
apt-get -y update
apt-get -y install lld zstd
- name: Cache Rust
uses: actions/cache@v3
with:
path: |
~/.rustup/
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ matrix.rust }}-test
- name: Install rust (${{ matrix.rust }})
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust }}
profile: minimal
override: true
- name: Configure Cargo to use lld
run: |
echo '[build]' >> ~/.cargo/config
echo 'rustflags = ["-Clink-args=-fuse-ld=lld"]' >> ~/.cargo/config
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: ${{ matrix.features }}
- name: Test
uses: actions-rs/cargo@v1
with:
command: test
args: ${{ matrix.features }}
- name: Doc
uses: actions-rs/cargo@v1
with:
command: doc
args: ${{ matrix.features }} --no-deps