diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..07c29f1 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,21 @@ +on: + release: + types: [created] + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: nightly-rust + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: nightly + - name: Build + run: cargo build --release --verbose + - name: Release + uses: softprops/action-gh-release@v1 + with: + files: | + target/release/reset diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 31000a2..cc6ac46 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -2,7 +2,6 @@ name: Rust on: push: - branches: [ "main" ] pull_request: branches: [ "main" ] @@ -16,6 +15,27 @@ jobs: steps: - uses: actions/checkout@v3 + - name: nightly-rust + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: nightly + - name: Cache + uses: actions/cache@v3 + with: + path: target/debug + key: ${{ runner.os }}-cache + - 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 run: cargo build --verbose - name: Run tests diff --git a/Cargo.toml b/Cargo.toml index cd176f2..e9bda64 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,7 @@ [package] -name = "ReSet" +name = "reset" version = "0.1.0" edition = "2021" +description = "A wip universal Linux settings application." [dependencies] diff --git a/README.md b/README.md index 30209ff..e4960e3 100644 --- a/README.md +++ b/README.md @@ -1 +1,3 @@ -# ReSet \ No newline at end of file +# ReSet + +A wip universal Linux settings application.