Skip to content

Commit

Permalink
added ci
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiDrang committed Jan 9, 2025
1 parent 6f63e35 commit ff3970e
Show file tree
Hide file tree
Showing 5 changed files with 127 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "cargo" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"
30 changes: 30 additions & 0 deletions .github/workflows/build_dev.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build Dev

on:
push:
branches: [ "master"]
paths:
- '.github/workflows/build_dev.yml'
- 'src/**'
- 'Cargo.toml'
pull_request:
branches: [ "master", "release"]
paths:
- '.github/workflows/build_dev.yml'
- 'src/**'
- 'Cargo.toml'
schedule:
- cron: "5 0 * * 1"

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Build dev
run: cargo build --verbose
30 changes: 30 additions & 0 deletions .github/workflows/build_doc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build Doc

on:
push:
branches: [ "master"]
paths:
- '.github/workflows/build_doc.yml'
- 'src/**'
- 'Cargo.toml'
pull_request:
branches: [ "master", "release"]
paths:
- '.github/workflows/build_doc.yml'
- 'src/**'
- 'Cargo.toml'
schedule:
- cron: "5 0 * * 1"

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Build doc
run: cargo doc --verbose
30 changes: 30 additions & 0 deletions .github/workflows/build_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Build Release

on:
push:
branches: [ "master"]
paths:
- '.github/workflows/build_release.yml'
- 'src/**'
- 'Cargo.toml'
pull_request:
branches: [ "master", "release"]
paths:
- '.github/workflows/build_release.yml'
- 'src/**'
- 'Cargo.toml'
schedule:
- cron: "5 0 * * 1"

env:
CARGO_TERM_COLOR: always

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Build release
run: cargo build --release --verbose
31 changes: 31 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Tests

on:
push:
branches: [ "master"]
paths:
- '.github/workflows/test.yml'
- 'src/**'
- 'tests/**'
- 'Cargo.toml'
pull_request:
branches: [ "master", "release"]
paths:
- '.github/workflows/test.yml'
- 'src/**'
- 'tests/**'
- 'Cargo.toml'
schedule:
- cron: "5 0 * * 1"

env:
CARGO_TERM_COLOR: always
API_KEY: ${{ secrets.API_KEY }}

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Test
run: cargo test --verbose

0 comments on commit ff3970e

Please sign in to comment.