diff options
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/docs.yml | 4 | ||||
-rw-r--r-- | .github/workflows/rust.yml | 22 |
2 files changed, 24 insertions, 2 deletions
diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index c563bf5..19fab14 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -1,7 +1,7 @@ name: Docs on: push: - branches: [main] + branches: [master] permissions: contents: read pages: write @@ -28,7 +28,7 @@ jobs: - name: Build docs run: cargo doc --no-deps - name: Add redirect - run: echo '<meta http-equiv="refresh" content="0;url=aoc/index.html">' > target/doc/index.html + run: echo '<meta http-equiv="refresh" content="0;url=occule/index.html">' > target/doc/index.html - name: Remove lock file run: rm target/doc/.lock - name: Upload artifact diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml new file mode 100644 index 0000000..000bb2c --- /dev/null +++ b/.github/workflows/rust.yml @@ -0,0 +1,22 @@ +name: Rust + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Build + run: cargo build --verbose + - name: Run tests + run: cargo test --verbose |