mirror of https://github.com/Tim-Paik/neutauri
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.5 KiB
50 lines
1.5 KiB
kind: pipeline |
|
type: docker |
|
name: build |
|
|
|
steps: |
|
- name: build |
|
image: ubuntu:latest |
|
commands: |
|
- echo '========Install the necessary environment========' |
|
- apt update && apt install -y curl gcc git libwebkit2gtk-4.0-dev libappindicator3-dev |
|
- echo '========Install the Rust toolchain========' |
|
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain stable -y |
|
- echo '========Compile the Neutauri binary========' |
|
- $HOME/.cargo/bin/cargo build --release --bin neutauri_runtime |
|
- $HOME/.cargo/bin/cargo build --release --bin neutauri_bundler |
|
|
|
- name: gitea_release |
|
image: plugins/gitea-release |
|
settings: |
|
api_key: |
|
from_secret: gitea_token |
|
base_url: https://git.186526.xyz |
|
files: |
|
- ./target/release/neutauri_bundler |
|
checksum: |
|
- md5 |
|
- sha256 |
|
when: |
|
event: |
|
- tag |
|
|
|
--- |
|
|
|
kind: pipeline |
|
type: docker |
|
name: clippy |
|
|
|
steps: |
|
- name: clippy |
|
image: ubuntu:latest |
|
commands: |
|
- echo '========Install the necessary environment========' |
|
- apt update && apt install -y curl gcc git libwebkit2gtk-4.0-dev libappindicator3-dev |
|
- echo '========Install the Rust toolchain========' |
|
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain stable -c clippy -y |
|
- echo '========Compile the Neutauri binary========' |
|
- $HOME/.cargo/bin/cargo build --release --bin neutauri_runtime |
|
- $HOME/.cargo/bin/cargo build --release --bin neutauri_bundler |
|
- echo '========Run Cargo Clippy========' |
|
- $HOME/.cargo/bin/cargo clippy
|
|
|