From 43bb3701349ce2d51a960f5c8c34a257c0898eba Mon Sep 17 00:00:00 2001 From: Konstantin Anisimov Date: Tue, 14 Dec 2021 22:09:06 +0300 Subject: [PATCH] test publish action, fix unknown nightly feature --- .github/workflows/antlr.yml | 15 +++++++++------ Cargo.toml | 2 +- src/lib.rs | 1 - 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/workflows/antlr.yml b/.github/workflows/antlr.yml index f95b238..cda51f1 100644 --- a/.github/workflows/antlr.yml +++ b/.github/workflows/antlr.yml @@ -4,13 +4,15 @@ on: push: branches: [ master ] pull_request: - branches: [ master ] + branches: + - master + - v0.3 workflow_dispatch: env: CARGO_TERM_COLOR: always - RUST_VERSION: nightly-2021-04-23 + RUST_VERSION: nightly-2021-12-23 jobs: tests-antlr: @@ -110,10 +112,7 @@ jobs: toolchain: ${{ env.RUST_VERSION }} default: true - name: Cargo publish check - env: - CRATES_IO_PUBLISH_TOKEN: ${{ secrets.CRATES_IO_PUBLISH_TOKEN }} run: | - cargo login $CRATES_IO_PUBLISH_TOKEN cargo publish --dry-run - uses: actions/download-artifact@v2 with: @@ -139,7 +138,11 @@ jobs: asset_name: antlr4-4.8-2-SNAPSHOT-complete.jar asset_content_type: application/java-archive - name: Cargo publish - run: cargo publish + env: + CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_PUBLISH_TOKEN }} + run: | + git clean -f + cargo publish - name: Publish github release uses: actions/create-release@v1 env: diff --git a/Cargo.toml b/Cargo.toml index 4affd11..b785371 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "antlr-rust" -version = "0.2.0" +version = "0.2.2" authors = ["Konstantin Anisimov "] homepage = "https://github.com/rrevenantt/antlr4rust" repository = "https://github.com/rrevenantt/antlr4rust" diff --git a/src/lib.rs b/src/lib.rs index 6d691af..976f326 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,7 +1,6 @@ #![crate_type = "lib"] #![feature(try_blocks)] //#![feature(nll)] -#![feature(raw)] #![feature(is_sorted)] #![feature(cell_update)] #![feature(get_mut_unchecked)]