From b7c355bd57267c7011bed00244b80d8b4f4d5de7 Mon Sep 17 00:00:00 2001 From: Wilson Lin Date: Fri, 19 Jun 2020 18:27:46 +1000 Subject: [PATCH] Fix various missing workflow parts --- .github/workflows/bench.yaml | 8 ++++++++ .github/workflows/java.yml | 2 +- cli/Cargo.toml | 2 +- version | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/bench.yaml b/.github/workflows/bench.yaml index 87d02a8..74369f4 100644 --- a/.github/workflows/bench.yaml +++ b/.github/workflows/bench.yaml @@ -26,6 +26,14 @@ jobs: toolchain: 1.39.0 profile: minimal default: true + - name: Build generated code + working-directory: ./gen + run: | + npm install + node node_modules/ts-node/dist/bin.js attrs.ts + node node_modules/ts-node/dist/bin.js dfa.ts + node node_modules/ts-node/dist/bin.js entities.ts + node node_modules/ts-node/dist/bin.js patterns.ts - name: Set up Node.js module working-directory: ./nodejs run: npm install diff --git a/.github/workflows/java.yml b/.github/workflows/java.yml index 3f41d37..3e5ece5 100644 --- a/.github/workflows/java.yml +++ b/.github/workflows/java.yml @@ -100,6 +100,6 @@ jobs: EOF - if [[ "$GITHUB_REF" != refs/tags/v* ]]; then + if [[ "$GITHUB_REF" == refs/tags/v* ]]; then mvn clean deploy fi diff --git a/cli/Cargo.toml b/cli/Cargo.toml index dcdac19..96d78ae 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -6,5 +6,5 @@ authors = ["Wilson Lin "] edition = "2018" [dependencies] -hyperbuild = { path = ".." } +hyperbuild = "0.1.2" structopt = "0.3.5" diff --git a/version b/version index 83a3339..da7d86c 100755 --- a/version +++ b/version @@ -74,7 +74,7 @@ for (const f of ['python/setup.py']) { replaceInFile(f, /^(\s*version=)"\d+\.\d+\.\d+",\s*$/m, `$1"${NEW_VERSION}",`); } -for (const f of ['README.md', 'nodejs/native/Cargo.toml', 'java/Cargo.toml', 'python/Cargo.toml', 'ruby/Cargo.toml']) { +for (const f of ['README.md', 'cli/Cargo.toml', 'nodejs/native/Cargo.toml', 'java/Cargo.toml', 'python/Cargo.toml', 'ruby/Cargo.toml']) { replaceInFile(f, /^hyperbuild = "\d+\.\d+\.\d+"\s*$/m, `hyperbuild = "${NEW_VERSION}"`); }