Skip to content

Commit cb1a301

Browse files
committed
Merge branch 'unstable' into stable
2 parents 307a3e7 + 72e4bc0 commit cb1a301

File tree

3 files changed

+102
-1
lines changed

3 files changed

+102
-1
lines changed

.depl/config.yaml

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ pipelines:
9292
- rust
9393
- cargo
9494
- clippy
95+
- tests
9596
- fmt
9697
- upx
9798
default: true
98-
exclusive_exec_tag: ""
9999
artifacts:
100100
- from: target/release/smart-patcher
101101
to: smart-patcher
@@ -118,3 +118,30 @@ pipelines:
118118
used: cargo-install-by-copy@0.1.0
119119
with:
120120
"%bin%": app
121+
- title: ci
122+
info: rust-default-ci@0.1.0
123+
tags:
124+
- rust
125+
- cargo
126+
- clippy
127+
gh_opts:
128+
on_push_branches:
129+
- stable
130+
- unstable
131+
on_pull_requests_branches:
132+
- unstable
133+
preflight_steps:
134+
- name: Install Rust Toolchain
135+
uses: actions-rust-lang/setup-rust-toolchain@v1
136+
with:
137+
components: clippy
138+
target: x86_64-unknown-linux-gnu
139+
toolchain: nightly
140+
artifacts:
141+
- from: target/release/smart-patcher
142+
to: smart-patcher
143+
actions:
144+
- title: Lint
145+
used: cargo-lint@0.1.0
146+
- title: Build
147+
used: cargo-release@0.1.0

.github/workflows/.pipe.ci.sh

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/bin/sh
2+
3+
set -e
4+
clear
5+
6+
echo -e "[1/2] Action \`\e[34;3mLint\e[0m\`..."
7+
echo -e "Executing \`\e[32mcargo clippy\e[0m\`..."
8+
cargo clippy
9+
10+
echo -e "[2/2] Action \`\e[34;3mBuild\e[0m\`..."
11+
echo -e "Executing \`\e[32mcargo build --release\e[0m\`..."
12+
cargo build --release
13+
14+
mkdir -p artifacts
15+
cp -r target/release/smart-patcher artifacts/smart-patcher

.github/workflows/ci.yml

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Generated by Deployer 2.X
2+
name: ci
3+
4+
on:
5+
push:
6+
branches:
7+
- stable
8+
- unstable
9+
pull_request:
10+
branches:
11+
- unstable
12+
13+
env:
14+
TERM: xterm
15+
16+
jobs:
17+
ci:
18+
name: ci
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
23+
- name: Install Rust Toolchain
24+
uses: actions-rust-lang/setup-rust-toolchain@v1
25+
with:
26+
components: clippy
27+
target: x86_64-unknown-linux-gnu
28+
toolchain: nightly
29+
30+
- name: Restore cache
31+
id: cache-restore
32+
uses: actions/cache/restore@v4
33+
with:
34+
path: |
35+
Cargo.lock
36+
examples
37+
target
38+
key: ${{ runner.os }}-ci
39+
40+
- name: Run pipeline
41+
run: |
42+
chmod +x .github/workflows/.pipe.ci.sh
43+
./.github/workflows/.pipe.ci.sh
44+
45+
- name: Save cache
46+
id: cache-save
47+
uses: actions/cache/save@v4
48+
with:
49+
path: |
50+
Cargo.lock
51+
examples
52+
target
53+
key: ${{ steps.cache-restore.outputs.cache-primary-key }}
54+
55+
- uses: actions/upload-artifact@v4
56+
with:
57+
name: ci
58+
path: |
59+
target/release/smart-patcher

0 commit comments

Comments
 (0)