Added workflow?
This commit is contained in:
parent
4d3cbe9ccb
commit
76f20d7948
@ -9,4 +9,8 @@ trim_trailing_whitespace = false
|
||||
insert_final_newline = false
|
||||
|
||||
[*.asm]
|
||||
indent_style = space
|
||||
indent_style = space
|
||||
|
||||
[*.yml]
|
||||
indent_size = space
|
||||
indent_size = 2
|
42
.gitea/workflows/ci.yml
Normal file
42
.gitea/workflows/ci.yml
Normal file
@ -0,0 +1,42 @@
|
||||
name: CI
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
typos:
|
||||
name: "Typos"
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Check typos
|
||||
uses: crate-ci/typos@master
|
||||
with:
|
||||
config: ./typos.toml
|
||||
|
||||
clippy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Run clippy
|
||||
working-directory: ./copperd
|
||||
run: cargo clippy --all-targets --all-features
|
||||
|
||||
build:
|
||||
name: "Build"
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: write
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: "Install TeXLive"
|
||||
run: |
|
||||
sudo apt update
|
||||
DEBIAN_FRONTEND=noninteractive \
|
||||
sudo apt install --yes \
|
||||
rustup
|
8
typos.toml
Normal file
8
typos.toml
Normal file
@ -0,0 +1,8 @@
|
||||
[default]
|
||||
extend-ignore-re = [
|
||||
# spell:disable-line
|
||||
"(?Rm)^.*(%|#|//)\\s*spell:disable-line$",
|
||||
|
||||
# spell:<on|off>
|
||||
"(?s)(%|#|//)\\s*spell:off.*?\\n\\s*(%|#|//)\\s*spell:on",
|
||||
]
|
Loading…
x
Reference in New Issue
Block a user