name: Rust on: push: branches: [main] pull_request: branches: [main] jobs: test: name: Test on ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: matrix: os: - ubuntu-latest steps: - name: Preserve line endings run: git config --global core.autocrlf false - name: Checkout uses: actions/checkout@v4 - name: Install latest rust stable uses: actions-rs/toolchain@v1 with: toolchain: stable override: true profile: minimal - name: Build uses: actions-rs/cargo@v1 with: command: build args: --verbose - name: Test uses: actions-rs/cargo@v1 with: command: test args: --verbose - name: Install wasm-pack uses: jetli/wasm-pack-action@v0.4.0 with: version: 'latest' - name: Build wasm/js package run: | cargo clean wasm-pack build --release --scope one-ini --target nodejs