Skip to content

Commit 8d76a86

Browse files
committed
Add actions workflow
1 parent fd10774 commit 8d76a86

File tree

4 files changed

+88
-0
lines changed

4 files changed

+88
-0
lines changed

.github/FUNDING.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# These are supported funding model platforms
2+
3+
github: [k-nasa]
4+
custom: ['https://twitter.com/nasa_desu']

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "cargo" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "daily"

.github/workflows/ci.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
- main
9+
10+
jobs:
11+
build_and_test:
12+
name: Build and test
13+
runs-on: ${{ matrix.os }}
14+
strategy:
15+
matrix:
16+
os: [ubuntu-latest, windows-latest, macOS-latest]
17+
rust: [nightly, beta, stable]
18+
19+
steps:
20+
- uses: actions/checkout@master
21+
22+
- name: Install ${{ matrix.rust }}
23+
uses: actions-rs/toolchain@master
24+
with:
25+
toolchain: ${{ matrix.rust }}
26+
override: true
27+
28+
- name: build
29+
uses: actions-rs/cargo@master
30+
with:
31+
command: build
32+
33+
- name: test
34+
uses: actions-rs/cargo@master
35+
with:
36+
command: test
37+
38+
check_fmt_and_docs:
39+
name: Checking fmt
40+
runs-on: ubuntu-latest
41+
steps:
42+
- uses: actions/checkout@master
43+
44+
- uses: actions-rs/toolchain@master
45+
with:
46+
profile: minimal
47+
toolchain: nightly
48+
override: true
49+
components: rustfmt
50+
51+
- name: setup
52+
run: |
53+
rustup component add rustfmt
54+
rustc --version
55+
56+
- name: fmt
57+
run: cargo fmt --all -- --check

.github/workflows/release.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Release
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
version:
6+
description: 'version'
7+
required: true
8+
9+
jobs:
10+
release:
11+
runs-on: [macos-latest]
12+
steps:
13+
- uses: actions/checkout@v1
14+
15+
- name: Release
16+
run: ./script/release ${{ github.event.inputs.version }} ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)