mirror of
https://github.com/Xetibo/ReSet.git
synced 2025-04-12 08:28:32 +02:00
chore: Shrink CI/CD
This commit is contained in:
parent
ce15ac565f
commit
c132765571
16
.github/workflows/rust.yml
vendored
16
.github/workflows/rust.yml
vendored
|
@ -11,9 +11,7 @@ env:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
|
||||||
runs-on: [self-hosted, ubuntu]
|
runs-on: [self-hosted, ubuntu]
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: nightly-rust
|
- name: nightly-rust
|
||||||
|
@ -21,17 +19,7 @@ jobs:
|
||||||
with:
|
with:
|
||||||
profile: minimal
|
profile: minimal
|
||||||
toolchain: nightly
|
toolchain: nightly
|
||||||
- name: run code coverage
|
|
||||||
uses: actions-rs/tarpaulin@v0.1
|
|
||||||
with:
|
|
||||||
version: '0.15.0'
|
|
||||||
args: '-- --test-threads 1'
|
|
||||||
- name: upload code coverage
|
|
||||||
uses: actions/upload-artifact@v1
|
|
||||||
with:
|
|
||||||
name: code-coverage-report
|
|
||||||
path: cobertura.xml
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cargo build --verbose
|
run: cargo build --verbose
|
||||||
- name: Run tests
|
- name: Run clippy
|
||||||
run: cargo test --verbose
|
run: cargo clippy --fix
|
||||||
|
|
2
PKGBUILD
2
PKGBUILD
|
@ -1,7 +1,7 @@
|
||||||
# Maintainer: Fabio Lenherr <dashie@dashie.org>
|
# Maintainer: Fabio Lenherr <dashie@dashie.org>
|
||||||
|
|
||||||
pkgname=reset
|
pkgname=reset
|
||||||
pkgver=0.1
|
pkgver=0.1.1
|
||||||
pkgrel=0
|
pkgrel=0
|
||||||
arch=('x86_64')
|
arch=('x86_64')
|
||||||
pkgdir="/usr/bin/${pkgname}"
|
pkgdir="/usr/bin/${pkgname}"
|
||||||
|
|
|
@ -1029,14 +1029,14 @@
|
||||||
{
|
{
|
||||||
"type": "archive",
|
"type": "archive",
|
||||||
"archive-type": "tar-gzip",
|
"archive-type": "tar-gzip",
|
||||||
"url": "https://static.crates.io/crates/re_set-lib/re_set-lib-0.8.2.crate",
|
"url": "https://static.crates.io/crates/re_set-lib/re_set-lib-0.8.5.crate",
|
||||||
"sha256": "37a810fe8a6e0f9b47c02bedeceea1d7994ae99c3af0b13990378ac81ca139cb",
|
"sha256": "553f659e88565f7f92b9be1f5fb1643260e90cfc37efc40c03125da4e16f3103",
|
||||||
"dest": "cargo/vendor/re_set-lib-0.8.2"
|
"dest": "cargo/vendor/re_set-lib-0.8.5"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "inline",
|
"type": "inline",
|
||||||
"contents": "{\"package\": \"37a810fe8a6e0f9b47c02bedeceea1d7994ae99c3af0b13990378ac81ca139cb\", \"files\": {}}",
|
"contents": "{\"package\": \"553f659e88565f7f92b9be1f5fb1643260e90cfc37efc40c03125da4e16f3103\", \"files\": {}}",
|
||||||
"dest": "cargo/vendor/re_set-lib-0.8.2",
|
"dest": "cargo/vendor/re_set-lib-0.8.5",
|
||||||
"dest-filename": ".cargo-checksum.json"
|
"dest-filename": ".cargo-checksum.json"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -1068,14 +1068,14 @@
|
||||||
{
|
{
|
||||||
"type": "archive",
|
"type": "archive",
|
||||||
"archive-type": "tar-gzip",
|
"archive-type": "tar-gzip",
|
||||||
"url": "https://static.crates.io/crates/reset_daemon/reset_daemon-0.5.6.crate",
|
"url": "https://static.crates.io/crates/reset_daemon/reset_daemon-0.6.0.crate",
|
||||||
"sha256": "240504ebc73a3d749480f765c1e9070a0add5a57ba6c1a0be1e97d52132da268",
|
"sha256": "11611caa1a9c1c642522228b72ac309502572916924c100b20d06a830b1fad07",
|
||||||
"dest": "cargo/vendor/reset_daemon-0.5.6"
|
"dest": "cargo/vendor/reset_daemon-0.6.0"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "inline",
|
"type": "inline",
|
||||||
"contents": "{\"package\": \"240504ebc73a3d749480f765c1e9070a0add5a57ba6c1a0be1e97d52132da268\", \"files\": {}}",
|
"contents": "{\"package\": \"11611caa1a9c1c642522228b72ac309502572916924c100b20d06a830b1fad07\", \"files\": {}}",
|
||||||
"dest": "cargo/vendor/reset_daemon-0.5.6",
|
"dest": "cargo/vendor/reset_daemon-0.6.0",
|
||||||
"dest-filename": ".cargo-checksum.json"
|
"dest-filename": ".cargo-checksum.json"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
32
release.yml
Normal file
32
release.yml
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
on:
|
||||||
|
release:
|
||||||
|
types: [ created ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
runs-on: [self-hosted, ubuntu]
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- name: nightly-rust
|
||||||
|
uses: actions-rs/toolchain@v1
|
||||||
|
with:
|
||||||
|
profile: minimal
|
||||||
|
toolchain: nightly
|
||||||
|
- name: Build rust package
|
||||||
|
run: cargo build --release --verbose
|
||||||
|
- name: Build Flatpak
|
||||||
|
run: |
|
||||||
|
cd flatpak
|
||||||
|
./build.sh
|
||||||
|
- name: Build Ubuntu package
|
||||||
|
run: |
|
||||||
|
cp ./target/release/reset ./debian/.
|
||||||
|
dpkg-deb --build debian
|
||||||
|
mv debian.deb reset.deb
|
||||||
|
- name: Release
|
||||||
|
uses: softprops/action-gh-release@v1
|
||||||
|
with:
|
||||||
|
files: |
|
||||||
|
target/release/reset
|
||||||
|
flatpak/reset.flatpak
|
||||||
|
reset.deb
|
Loading…
Reference in a new issue