Skip to content

Commit

Permalink
update GitHub workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
magiclen committed Sep 9, 2023
1 parent 5fe892f commit 4c517b4
Show file tree
Hide file tree
Showing 2 changed files with 62 additions and 4 deletions.
33 changes: 31 additions & 2 deletions .github/workflows/ci-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ jobs:
os:
- ubuntu-latest
toolchain:
- 1.56
- stable
- nightly
features:
Expand All @@ -40,4 +39,34 @@ jobs:
with:
toolchain: ${{ matrix.toolchain }}
- run: cargo test --release ${{ matrix.features }}
- run: cargo doc --release ${{ matrix.features }}
- run: cargo doc --release ${{ matrix.features }}

MSRV:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
toolchain:
- 1.56
features:
-
- --features static-dictionaries
name: Test ${{ matrix.toolchain }} on ${{ matrix.os }} (${{ matrix.features }})
runs-on: ${{ matrix.os }}
steps:
- name: Install OpenCC
run: |
sudo apt update
sudo apt install doxygen cmake wget
wget https://github.com/BYVoid/OpenCC/archive/refs/tags/ver.1.1.6.tar.gz
tar xf ver.1.1.6.tar.gz
cd OpenCC-*
make -j$(nproc) PREFIX=/usr
sudo make PREFIX=/usr install
- run: sudo ldconfig
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
- run: cargo test --release --lib --bins ${{ matrix.features }}
33 changes: 31 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ jobs:
os:
- ubuntu-latest
toolchain:
- 1.56
- stable
- nightly
features:
Expand All @@ -65,4 +64,34 @@ jobs:
with:
toolchain: ${{ matrix.toolchain }}
- run: cargo test ${{ matrix.features }}
- run: cargo doc ${{ matrix.features }}
- run: cargo doc ${{ matrix.features }}

MSRV:
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
toolchain:
- 1.56
features:
-
- --features static-dictionaries
name: Test ${{ matrix.toolchain }} on ${{ matrix.os }} (${{ matrix.features }})
runs-on: ${{ matrix.os }}
steps:
- name: Install OpenCC
run: |
sudo apt update
sudo apt install doxygen cmake wget
wget https://github.com/BYVoid/OpenCC/archive/refs/tags/ver.1.1.6.tar.gz
tar xf ver.1.1.6.tar.gz
cd OpenCC-*
make -j$(nproc) PREFIX=/usr
sudo make PREFIX=/usr install
- run: sudo ldconfig
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
- run: cargo test --lib --bins ${{ matrix.features }}

0 comments on commit 4c517b4

Please sign in to comment.