aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/stale.yml11
-rw-r--r--.github/workflows/release.yaml49
-rw-r--r--.github/workflows/rust.yaml34
3 files changed, 94 insertions, 0 deletions
diff --git a/.github/stale.yml b/.github/stale.yml
new file mode 100644
index 0000000..0718720
--- /dev/null
+++ b/.github/stale.yml
@@ -0,0 +1,11 @@
+daysUntilStale: 30
+daysUntilClose: 7
+exemptLabels:
+ - pinned
+ - security
+staleLabel: wontfix
+markComment: >
+ This issue has been automatically marked as stale because it has not had
+ recent activity. It will be closed if no further activity occurs. Thank you
+ for your contributions.
+closeComment: true
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
new file mode 100644
index 0000000..65f896f
--- /dev/null
+++ b/.github/workflows/release.yaml
@@ -0,0 +1,49 @@
+name: Release ⚾
+
+on:
+ push:
+ tags:
+ - '*'
+
+jobs:
+ release:
+ runs-on: ubuntu-20.04
+ steps:
+ - name: Checkout 🛒
+ uses: actions/checkout@v2
+
+ - name: Toolchain 🧰
+ uses: actions-rs/toolchain@v1
+ with:
+ profile: minimal
+ toolchain: nightly-2021-12-04
+ components: rustfmt, clippy
+ override: true
+
+ - name: Build 🏗
+ uses: actions-rs/cargo@v1
+ continue-on-error: false
+ with:
+ command: build
+ args: --release
+
+ - name: Create Release 🏉
+ id: create_release
+ uses: actions/create-release@v1
+ env:
+ GITHUB_TOKEN: ${{ github.token }}
+ with:
+ tag_name: ${{ github.ref }}
+ release_name: ${{ github.ref }}
+ draft: false
+ prerelease: false
+
+ - name: Upload Artifacts to Release 💎
+ uses: actions/upload-release-asset@v1
+ env:
+ GITHUB_TOKEN: ${{ github.token }}
+ with:
+ upload_url: ${{ steps.create_release.outputs.upload_url }}
+ asset_path: ./target/release/divina
+ asset_name: divina
+ asset_content_type: application/x-elf # x-msdownload for Windows
diff --git a/.github/workflows/rust.yaml b/.github/workflows/rust.yaml
new file mode 100644
index 0000000..ee0218a
--- /dev/null
+++ b/.github/workflows/rust.yaml
@@ -0,0 +1,34 @@
+name: Rust ✅
+
+on:
+ push:
+ paths:
+ - "crates/**"
+ pull_request:
+ paths:
+ - "crates/**"
+
+env:
+ CARGO_TERM_COLOR: always
+
+jobs:
+ check:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout 🛒
+ uses: actions/checkout@v2
+
+ - name: Toolchain 🧰
+ uses: actions-rs/toolchain@v1
+ with:
+ profile: minimal
+ toolchain: nightly-2021-12-04
+ components: rustfmt, clippy
+ override: true
+
+ - name: Check ✅
+ uses: actions-rs/cargo@v1
+ continue-on-error: false
+ with:
+ command: check
+ args: --verbose