diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7b0bbb6..13932bc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -51,6 +51,7 @@ jobs: steps: - uses: actions/checkout@v1 + - uses: guybedford/chomp-action@v1 - name: Set env run: | @@ -64,7 +65,7 @@ jobs: toolchain: stable - name: Build - run: cargo build --release --locked + run: chomp build:release - name: archive release shell: bash @@ -89,6 +90,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 + - uses: guybedford/chomp-action@v1 - uses: actions-rs/toolchain@v1 with: profile: minimal @@ -96,5 +98,6 @@ jobs: - run: cargo login ${CRATES_IO_TOKEN} env: CRATES_IO_TOKEN: ${{ secrets.CRATES_IO_TOKEN }} + - run: chomp prebuild - name: publish chomp run: cargo publish diff --git a/.gitignore b/.gitignore index 41b3eae..7d2aef7 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,4 @@ target package.json package-lock.json sandbox -test/output +test/output \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml index 4dec302..205d080 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "chompbuild" -version = "0.1.9" +version = "0.1.10" authors = ["Guy Bedford "] edition = "2021" license = "GPL-3.0" diff --git a/chompfile.toml b/chompfile.toml index e9fb83a..a3a50d3 100644 --- a/chompfile.toml +++ b/chompfile.toml @@ -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' diff --git a/src/main.rs b/src/main.rs index 1d3427b..8163299 100644 --- a/src/main.rs +++ b/src/main.rs @@ -71,9 +71,9 @@ fn uri_parse(uri_str: &str) -> Option { #[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(