aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorFuwn <[email protected]>2022-02-27 06:53:33 -0800
committerFuwn <[email protected]>2022-02-27 06:53:33 -0800
commit225fc572faa1f7f54c7266d5d6a5c74345dfdaa2 (patch)
treea30dd2959f3e99d15bc6b4c12fac5a32c3b8994a /.github
downloadpara-225fc572faa1f7f54c7266d5d6a5c74345dfdaa2.tar.xz
para-225fc572faa1f7f54c7266d5d6a5c74345dfdaa2.zip
feat(para): :star:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/release.yaml50
-rw-r--r--.github/workflows/rust.yaml35
2 files changed, 85 insertions, 0 deletions
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
new file mode 100644
index 0000000..ccc046e
--- /dev/null
+++ b/.github/workflows/release.yaml
@@ -0,0 +1,50 @@
+name: Release ⚾
+
+on:
+ workflow_dispatch:
+ 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-2022-02-20
+ 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/para
+ 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..255beac
--- /dev/null
+++ b/.github/workflows/rust.yaml
@@ -0,0 +1,35 @@
+name: Rust ✅
+
+on:
+ workflow_dispatch:
+ push:
+ paths:
+ - "*"
+ pull_request:
+ paths:
+ - "*"
+
+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-2022-02-20
+ components: rustfmt, clippy
+ override: true
+
+ - name: Check ✅
+ uses: actions-rs/cargo@v1
+ continue-on-error: false
+ with:
+ command: check
+ args: --verbose