refactor: remove Send
Sync
bound of fang system on rt_worker
#449
Workflow file for this run
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: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
CI: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
toolchain: ['stable', 'nightly'] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup mold | |
run: | | |
sudo apt install mold clang | |
echo '[target.x86_64-unknown-linux-gnu]' >> $HOME/.cargo/config.toml | |
echo 'linker = "clang"' >> $HOME/.cargo/config.toml | |
echo 'rustflags = ["-C", "link-arg=-fuse-ld=/usr/bin/mold"]' >> $HOME/.cargo/config.toml | |
cat $HOME/.cargo/config.toml | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.toolchain }} | |
profile: minimal | |
override: true | |
target: wasm32-unknown-unknown | |
- name: Cache cargo subcommands | |
id: cache_cargo_subcommands | |
uses: actions/cache@v3 | |
with: | |
key: ${{ runner.os }}-cargo-install--sqlx-sccache | |
path: ~/.cargo/bin | |
- name: Install cargo subcommands | |
if: ${{ steps.cache_cargo_subcommands.outputs.cache-hit != 'true' }} | |
run: | | |
cargo install sqlx-cli --no-default-features --features native-tls,postgres | |
cargo install sccache --locked | |
- name: Setup sccache | |
run: | | |
echo '[build]' >> $HOME/.cargo/config.toml | |
echo "rustc-wrapper = \"$HOME/.cargo/bin/sccache\"" >> $HOME/.cargo/config.toml | |
cat $HOME/.cargo/config.toml | |
- name: Cache sccahe dir | |
id: cahce_sccahe_dir | |
uses: actions/cache@v3 | |
with: | |
key: ${{ runner.os }}-sccahe-dir | |
path: ~/.cache/sccache | |
- name: Run tasks | |
run: | | |
sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b /usr/local/bin | |
${{ matrix.toolchain == 'nightly' && 'task CI' || 'task CI_stable' }} |