Skip to content

Commit

Permalink
test publish action, fix unknown nightly feature
Browse files Browse the repository at this point in the history
  • Loading branch information
rrevenantt committed Jan 10, 2022
1 parent 3c36c28 commit 43bb370
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/antlr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:
Expand All @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "antlr-rust"
version = "0.2.0"
version = "0.2.2"
authors = ["Konstantin Anisimov <[email protected]>"]
homepage = "https://github.com/rrevenantt/antlr4rust"
repository = "https://github.com/rrevenantt/antlr4rust"
Expand Down
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#![crate_type = "lib"]
#![feature(try_blocks)]
//#![feature(nll)]
#![feature(raw)]
#![feature(is_sorted)]
#![feature(cell_update)]
#![feature(get_mut_unchecked)]
Expand Down

0 comments on commit 43bb370

Please sign in to comment.