fix: Problems' description (pick, edit) (#163) #270
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: leetcode-cli | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macOS-latest, ubuntu-latest] | |
steps: | |
- name: Checkout the source code | |
uses: actions/checkout@v4 | |
- name: Set nightly toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: stable | |
- name: Environment | |
run: | | |
if [[ "$(uname)" == 'Darwin' ]]; then | |
brew install sqlite3 | |
else | |
sudo apt-get update -y | |
sudo apt-get install -y libsqlite3-dev libdbus-1-dev | |
fi | |
- name: Build | |
run: cargo build --release --all-features | |
- name: Run tests | |
run: cargo test --release --all-features |