Skip to content

Commit

Permalink
0.1.10
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford committed Mar 9, 2022
1 parent 82a2bde commit 76bd313
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 6 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ jobs:

steps:
- uses: actions/checkout@v1
- uses: guybedford/chomp-action@v1

- name: Set env
run: |
Expand All @@ -64,7 +65,7 @@ jobs:
toolchain: stable

- name: Build
run: cargo build --release --locked
run: chomp build:release

- name: archive release
shell: bash
Expand All @@ -89,12 +90,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: guybedford/chomp-action@v1
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- run: cargo login ${CRATES_IO_TOKEN}
env:
CRATES_IO_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}
- run: chomp prebuild
- name: publish chomp
run: cargo publish
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ target
package.json
package-lock.json
sandbox
test/output
test/output
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "chompbuild"
version = "0.1.9"
version = "0.1.10"
authors = ["Guy Bedford <[email protected]>"]
edition = "2021"
license = "GPL-3.0"
Expand Down
11 changes: 10 additions & 1 deletion chompfile.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,19 @@ version = 0.1
default-task = 'test'

[[task]]
name = 'build'
name = 'prebuild'
dep = 'inline-version'

[[task]]
name = 'build'
dep = 'prebuild'
run = 'cargo build'

[[task]]
name = 'build:release'
dep = 'prebuild'
run = 'cargo build --release --locked'

[[task]]
name = 'test'
dep = 'build'
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ fn uri_parse(uri_str: &str) -> Option<Uri> {
#[tokio::main]
async fn main() -> Result<()> {
#[cfg(not(debug_assertions))]
let version = "0.1.9";
let version = "0.1.10";
#[cfg(debug_assertions)]
let version = "0.1.9-debug";
let version = "0.1.10-debug";
let matches = App::new("Chomp")
.version(version)
.arg(
Expand Down

0 comments on commit 76bd313

Please sign in to comment.