Use typed-arena
#79
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: Build | |
on: | |
push: | |
pull_request: | |
release: | |
types: [created] | |
jobs: | |
build: | |
name: cgt-rs build | |
strategy: | |
matrix: | |
os: ["ubuntu-latest", "windows-latest"] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install toolchain | |
uses: dtolnay/rust-toolchain@f361669954a8ecfc00a3443f35f9ac8e610ffc06 | |
with: | |
toolchain: stable | |
components: rustfmt, clippy | |
targets: wasm32-unknown-unknown | |
- name: Add mingw64 to path for x86_64-gnu | |
if: matrix.os == 'windows-latest' | |
run: echo "C:\msys64\mingw64\bin" >> $GITHUB_PATH | |
shell: bash | |
- name: Build | |
run: cargo build --release --all | |
- name: Test | |
run: cargo test --all | |
# - name: Clippy | |
# run: cargo clippy -- -D warnings | |
- name: Install tailwind | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
wget https://github.com/tailwindlabs/tailwindcss/releases/download/v3.3.3/tailwindcss-linux-x64 -O /usr/local/bin/tailwindcss | |
chmod +x /usr/local/bin/tailwindcss | |
tailwindcss --help | |
- name: Install trunk | |
if: matrix.os == 'ubuntu-latest' | |
run: cargo install --locked trunk | |
- name: Build website | |
if: matrix.os == 'ubuntu-latest' | |
working-directory: ./cgt-website | |
run: | | |
RUSTFLAGS=--cfg=web_sys_unstable_apis trunk build --release | |
cp dist/index.html dist/404.html | |
echo "cgt.t4ccer.com" > dist/CNAME | |
- name: Deploy website | |
if: matrix.os == 'ubuntu-latest' | |
uses: peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_dir: ./cgt-website/dist |