Skip to content

use 2021 edition

use 2021 edition #3

Workflow file for this run

name: Build and Test
on:
push:
pull_request:
workflow_dispatch:
env:
RUSTUP_TOOLCHAIN: stable
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
env:
NODE_VERSION: 18.x
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 18.x
- name: Build
run: cargo build --release
- name: Test
run: cargo test
- name: Set environment variables
run: |
echo "BUILD_STATUS=success" >> $GITHUB_ENV
echo "BUILD_TIMESTAMP=$(date -u +%Y-%m-%dT%H:%M:%SZ)" >> $GITHUB_ENV