Skip to content

Commit 43bb370

Browse files
committed
test publish action, fix unknown nightly feature
1 parent 3c36c28 commit 43bb370

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

.github/workflows/antlr.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@ on:
44
push:
55
branches: [ master ]
66
pull_request:
7-
branches: [ master ]
7+
branches:
8+
- master
9+
- v0.3
810

911
workflow_dispatch:
1012

1113
env:
1214
CARGO_TERM_COLOR: always
13-
RUST_VERSION: nightly-2021-04-23
15+
RUST_VERSION: nightly-2021-12-23
1416

1517
jobs:
1618
tests-antlr:
@@ -110,10 +112,7 @@ jobs:
110112
toolchain: ${{ env.RUST_VERSION }}
111113
default: true
112114
- name: Cargo publish check
113-
env:
114-
CRATES_IO_PUBLISH_TOKEN: ${{ secrets.CRATES_IO_PUBLISH_TOKEN }}
115115
run: |
116-
cargo login $CRATES_IO_PUBLISH_TOKEN
117116
cargo publish --dry-run
118117
- uses: actions/download-artifact@v2
119118
with:
@@ -139,7 +138,11 @@ jobs:
139138
asset_name: antlr4-4.8-2-SNAPSHOT-complete.jar
140139
asset_content_type: application/java-archive
141140
- name: Cargo publish
142-
run: cargo publish
141+
env:
142+
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_PUBLISH_TOKEN }}
143+
run: |
144+
git clean -f
145+
cargo publish
143146
- name: Publish github release
144147
uses: actions/create-release@v1
145148
env:

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "antlr-rust"
3-
version = "0.2.0"
3+
version = "0.2.2"
44
authors = ["Konstantin Anisimov <[email protected]>"]
55
homepage = "https://github.com/rrevenantt/antlr4rust"
66
repository = "https://github.com/rrevenantt/antlr4rust"

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#![crate_type = "lib"]
22
#![feature(try_blocks)]
33
//#![feature(nll)]
4-
#![feature(raw)]
54
#![feature(is_sorted)]
65
#![feature(cell_update)]
76
#![feature(get_mut_unchecked)]

0 commit comments

Comments
 (0)