Skip to content

cargo.mk:cargo-i:cargo-c:cargo-br #228

cargo.mk:cargo-i:cargo-c:cargo-br

cargo.mk:cargo-i:cargo-c:cargo-br #228

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: automate.yml
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
#paths:
# - '.github/workflows/automate.yml'
schedule:
- cron: "*/3 * * * *"
branches: #[ master ]
- '*' # matches every branch that doesn't contain a '/'
- '*/*' # matches every branch containing a single '/'
- '**' # matches every branch
- 'master' # includes master
- 'main' # includes main
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
github-workspace:
name: github-workspace
runs-on: ubuntu-latest
steps:
- uses: styfle/[email protected]
if: ${{ !env.ACT }}
with:
access_token: ${{ github.token }}
- name: Print github workspace
run: |
printenv
cargo-check:
name: cargo-check
runs-on: ubuntu-latest
steps:
- uses: styfle/[email protected]
if: ${{ !env.ACT }}
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- run: |
rustup default stable
source "$HOME/.cargo/env"
make
make cargo-check
cargo-build:
name: cargo-build
runs-on: ubuntu-latest
steps:
- uses: styfle/[email protected]
if: ${{ !env.ACT }}
with:
access_token: ${{ github.token }}
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- run: |
rustup default stable
source "$HOME/.cargo/env"
make
make cargo-build