chore: migrate to Forgejo
All checks were successful
Build and test / Clippy (pull_request) Successful in 49s
Build and test / Generate Documentation (pull_request) Successful in 45s
Build and test / Build AMD64 (pull_request) Successful in 50s
Checking yaml / Run yamllint (pull_request) Successful in 5s
Checking Renovate configuration / validate (pull_request) Successful in 1m30s
Build and test / Tests (pull_request) Successful in 2m34s
All checks were successful
Build and test / Clippy (pull_request) Successful in 49s
Build and test / Generate Documentation (pull_request) Successful in 45s
Build and test / Build AMD64 (pull_request) Successful in 50s
Checking yaml / Run yamllint (pull_request) Successful in 5s
Checking Renovate configuration / validate (pull_request) Successful in 1m30s
Build and test / Tests (pull_request) Successful in 2m34s
This commit is contained in:
parent
e1271461a3
commit
5bf38fdac3
10 changed files with 223 additions and 97 deletions
24
.forgejo/workflows/renovate-config-validation.yaml
Normal file
24
.forgejo/workflows/renovate-config-validation.yaml
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
---
|
||||
name: Checking Renovate configuration
|
||||
|
||||
on: # yamllint disable-line rule:truthy
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
validate:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v4
|
||||
- name: Cache npm (renovate)
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.npm
|
||||
key: ${{ runner.os }}-npm-renovate
|
||||
restore-keys: |
|
||||
${{ runner.os }}-npm-renovate-
|
||||
- name: Validate Renovate configuration
|
||||
uses: suzuki-shunsuke/github-action-renovate-config-validator@v1.1.1
|
||||
env:
|
||||
NPM_CONFIG_CACHE: ~/.npm
|
||||
...
|
||||
127
.forgejo/workflows/rust.yml
Normal file
127
.forgejo/workflows/rust.yml
Normal file
|
|
@ -0,0 +1,127 @@
|
|||
---
|
||||
# yamllint disable rule:line-length
|
||||
|
||||
name: Build and test
|
||||
|
||||
on: # yamllint disable-line rule:truthy
|
||||
pull_request:
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
jobs:
|
||||
tests:
|
||||
name: Tests
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Cache Rust toolchain
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.rustup
|
||||
key: ${{ runner.os }}-rustup-toolchain-stable-clippy-rustfmt
|
||||
- name: Install Rust toolchain
|
||||
uses: actions-rust-lang/setup-rust-toolchain@v1.15.2
|
||||
with:
|
||||
toolchain: stable
|
||||
components: clippy, rustfmt
|
||||
- name: Show versions
|
||||
run: |
|
||||
rustc --version
|
||||
cargo --version
|
||||
- name: Check formatting
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: fmt
|
||||
args: --check
|
||||
- name: Run tests
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: test
|
||||
clippy:
|
||||
name: Clippy
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Cache Rust toolchain
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.rustup
|
||||
key: ${{ runner.os }}-rustup-toolchain-stable-clippy-rustfmt
|
||||
- name: Install Rust toolchain
|
||||
uses: actions-rust-lang/setup-rust-toolchain@v1.15.2
|
||||
with:
|
||||
toolchain: stable
|
||||
components: clippy, rustfmt
|
||||
- name: Show versions
|
||||
run: |
|
||||
rustc --version
|
||||
cargo --version
|
||||
- name: Clippy check
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: clippy
|
||||
args: -- -D warnings
|
||||
|
||||
build-amd64:
|
||||
name: Build AMD64
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Cache Rust toolchain
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.rustup
|
||||
key: ${{ runner.os }}-rustup-toolchain-stable-clippy-rustfmt
|
||||
- name: Install Rust toolchain
|
||||
uses: actions-rust-lang/setup-rust-toolchain@v1.15.2
|
||||
with:
|
||||
toolchain: stable
|
||||
components: clippy, rustfmt
|
||||
- name: Show versions
|
||||
run: |
|
||||
rustc --version
|
||||
cargo --version
|
||||
- name: Build release binary
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: build
|
||||
args: --release --all-features
|
||||
- name: Upload binary artifact
|
||||
uses: https://code.forgejo.org/forgejo/upload-artifact@v4
|
||||
with:
|
||||
name: reddit-magnet-linux-amd64
|
||||
path: target/release/reddit-magnet
|
||||
|
||||
rustdoc:
|
||||
name: Generate Documentation
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Cache Rust toolchain
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.rustup
|
||||
key: ${{ runner.os }}-rustup-toolchain-stable-clippy-rustfmt
|
||||
- name: Install Rust toolchain
|
||||
uses: actions-rust-lang/setup-rust-toolchain@v1.15.2
|
||||
with:
|
||||
toolchain: stable
|
||||
components: clippy, rustfmt
|
||||
- name: Show versions
|
||||
run: |
|
||||
rustc --version
|
||||
cargo --version
|
||||
- name: Generate documentation
|
||||
uses: actions-rs/cargo@v1
|
||||
with:
|
||||
command: doc
|
||||
args: --all-features --workspace --no-deps
|
||||
- name: Compress documentation
|
||||
run: tar -czf rustdoc.tar.gz -C target doc
|
||||
- name: Upload documentation artifact
|
||||
uses: https://code.forgejo.org/forgejo/upload-artifact@v4
|
||||
with:
|
||||
name: rustdoc
|
||||
path: rustdoc.tar.gz
|
||||
...
|
||||
18
.forgejo/workflows/yamllint.yaml
Normal file
18
.forgejo/workflows/yamllint.yaml
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
---
|
||||
name: Checking yaml
|
||||
|
||||
on: # yamllint disable-line rule:truthy
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
yamllint:
|
||||
name: Run yamllint
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Check out code
|
||||
uses: actions/checkout@v4
|
||||
- name: Run YAML linter
|
||||
uses: bewuethr/yamllint-action@v1
|
||||
with:
|
||||
config-file: .yamllint.yaml
|
||||
...
|
||||
Loading…
Add table
Add a link
Reference in a new issue