From f3a9ba49ee7b966da1afb7de96a660b6dd9c8fcc Mon Sep 17 00:00:00 2001 From: Morgan Funtowicz Date: Tue, 26 Nov 2019 10:59:34 +0100 Subject: [PATCH 1/3] Fix Cargo.toml not found in Rust workflow --- .github/workflows/rust.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index e8dd62d62..8a4fe101e 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -12,13 +12,7 @@ jobs: steps: - uses: actions/checkout@v1 - - name: Moving to tokenizers folder - run: cd tokenizers - - name: Second move to tokenizers folder - run: cd tokenizers - - name: List files - run: ls -lah - name: Build - run: cargo build --verbose + run: cargo build --verbose --manifest-path ./tokenizers/Cargo.toml - name: Run tests - run: cargo test --verbose + run: cargo test --verbose --manifest-path ./tokenizers/Cargo.toml From e6345ce6c5f38d9c78c7979b30a65dc7eb32a54d Mon Sep 17 00:00:00 2001 From: Morgan Funtowicz Date: Tue, 26 Nov 2019 11:20:12 +0100 Subject: [PATCH 2/3] Try updating to official rust Github Action to avoid missing rust components. --- .github/workflows/rust.yml | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 8a4fe101e..cd64ea588 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -4,7 +4,6 @@ on: [push] jobs: build: - runs-on: ${{ matrix.os }} strategy: matrix: @@ -12,7 +11,20 @@ jobs: steps: - uses: actions/checkout@v1 + - name: Install Rust Stable + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + - name: Build - run: cargo build --verbose --manifest-path ./tokenizers/Cargo.toml - - name: Run tests - run: cargo test --verbose --manifest-path ./tokenizers/Cargo.toml + uses: actions-rs/cargo@v1 + with: + command: build + args: --verbose --manifest-path ./tokenizers/Cargo.toml + + - name: Run Tests + uses: actions-rs/cargo@v1 + with: + command: test + args: --verbose --manifest-path ./tokenizers/Cargo.toml From a1e43ab493b9acdcd8e504179aa3cd247dcc01ee Mon Sep 17 00:00:00 2001 From: Morgan Funtowicz Date: Tue, 26 Nov 2019 11:23:12 +0100 Subject: [PATCH 3/3] Fix yaml indent --- .github/workflows/rust.yml | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index cd64ea588..a3acc3780 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -10,20 +10,21 @@ jobs: os: [ubuntu-latest, windows-latest, macOS-latest] steps: - - uses: actions/checkout@v1 - - name: Install Rust Stable - uses: actions-rs/toolchain@v1 - with: - toolchain: stable - override: true + - uses: actions/checkout@v1 - - name: Build - uses: actions-rs/cargo@v1 - with: - command: build - args: --verbose --manifest-path ./tokenizers/Cargo.toml + - name: Install Rust Stable + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + override: true + + - name: Build + uses: actions-rs/cargo@v1 + with: + command: build + args: --verbose --manifest-path ./tokenizers/Cargo.toml - - name: Run Tests + - name: Run Tests uses: actions-rs/cargo@v1 with: command: test