[CLI/CRC] Don't print the input in bytes mode #8
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 wasm | |
on: [push, pull_request] | |
jobs: | |
build: | |
name: Build for wasm | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: 1.74.1 | |
targets: wasm32-unknown-unknown | |
- name: Rust Cache | |
uses: Swatinem/[email protected] | |
- name: Download wasi-sdk | |
uses: suisei-cn/[email protected] | |
with: | |
url: "https://github.com/WebAssembly/wasi-sdk/releases/download/wasi-sdk-20/wasi-sdk-20.0-linux.tar.gz" | |
- name: Install dependencies | |
run: | | |
mkdir -p ${{ github.workspace }}/wasi-sdk/ && tar -xzvf wasi-sdk-20.0-linux.tar.gz --strip-components=1 -C ${{ github.workspace }}/wasi-sdk/ | |
cargo install trunk | |
- name: Build | |
run: trunk build --release | |
env: | |
CC: "${{ github.workspace }}/wasi-sdk/bin/clang --sysroot=${{ github.workspace }}/wasi-sdk/share/wasi-sysroot" | |
working-directory: ${{ github.workspace }}/bff-gui/ | |
- name: Upload Pages artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: ${{ github.workspace }}/bff-gui/dist/ | |
deploy: | |
needs: build | |
permissions: | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |