Compare commits
No commits in common. "d49971995cb916f650dbe7679cbd78c48fb5cd3f" and "f7318f3661bd7d291eaa846f3f87c8dd946bf64a" have entirely different histories.
d49971995c
...
f7318f3661
@ -1,67 +0,0 @@
|
|||||||
name: Build && Deploy
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- dev
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
name: cargo build
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Install clang to compile quickjs-ng
|
|
||||||
run: apt update && apt install -y clang libclang-dev
|
|
||||||
- name: Restore cached toolchain
|
|
||||||
id: cache-toolchain
|
|
||||||
uses: actions/cache/restore@v4
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.rustup
|
|
||||||
~/.cargo
|
|
||||||
key: linux-rust-toolchainv2
|
|
||||||
- name: Install minimal stable with clippy and rustfmt
|
|
||||||
uses: actions-rs/toolchain@v1
|
|
||||||
with:
|
|
||||||
profile: minimal
|
|
||||||
toolchain: stable
|
|
||||||
- name: Save cached toolchain
|
|
||||||
id: cache-toolchain-save
|
|
||||||
uses: actions/cache/save@v4
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.rustup
|
|
||||||
~/.cargo
|
|
||||||
key: ${{ steps.cache-toolchain.outputs.cache-primary-key }}
|
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- name: Restore cached cargo dependencies
|
|
||||||
id: cache-project-dependencies
|
|
||||||
uses: actions/cache/restore@v4
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.cargo/bin/
|
|
||||||
~/.cargo/registry/index/
|
|
||||||
~/.cargo/registry/cache/
|
|
||||||
~/.cargo/git/db/
|
|
||||||
target
|
|
||||||
key: linux-project-dependencies
|
|
||||||
- run: cargo build --release --target x86_64-unknown-linux-gnu
|
|
||||||
- name: Save cached cargo dependencies
|
|
||||||
id: cache-project-dependencies-restore
|
|
||||||
uses: actions/cache/save@v4
|
|
||||||
with:
|
|
||||||
path: |
|
|
||||||
~/.cargo/bin/
|
|
||||||
~/.cargo/registry/index/
|
|
||||||
~/.cargo/registry/cache/
|
|
||||||
~/.cargo/git/db/
|
|
||||||
target
|
|
||||||
key: ${{ steps.cache-project-dependencies.outputs.cache-primary-key }}
|
|
||||||
|
|
||||||
- name: Upload Release Binary
|
|
||||||
id: bot-artifact
|
|
||||||
uses: christopherhx/gitea-upload-artifact@v4
|
|
||||||
with:
|
|
||||||
name: botrunner
|
|
||||||
path: target/x86_64-unknown-linux-gnu/release/gongbotrs
|
|
||||||
@ -9,8 +9,6 @@ jobs:
|
|||||||
name: cargo build
|
name: cargo build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Install clang to compile quickjs-ng
|
|
||||||
run: apt update && apt install -y clang libclang-dev
|
|
||||||
- name: Restore cached toolchain
|
- name: Restore cached toolchain
|
||||||
id: cache-toolchain
|
id: cache-toolchain
|
||||||
uses: actions/cache/restore@v4
|
uses: actions/cache/restore@v4
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user