Skip to content

Commit e6f87b0

Browse files
authored
Create ci.yml
1 parent e71ba78 commit e6f87b0

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/ci.yml

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
2+
name: CI
3+
4+
on:
5+
push:
6+
pull_request:
7+
schedule: [cron: "40 1 * * *"]
8+
9+
jobs:
10+
install:
11+
name: Rust ${{matrix.rust}}
12+
runs-on: ubuntu-latest
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
rust: [nightly, beta, stable]
17+
steps:
18+
- uses: actions/checkout@v3
19+
- uses: ./
20+
name: Run actions-rust-lang/setup-rust-toolchain ${{matrix.rust}}
21+
id: toolchain
22+
with:
23+
toolchain: ${{matrix.rust}}
24+
- name: Check ${{'${{steps.toolchain.outputs.rustc-version}}'}}
25+
run: echo '${{steps.toolchain.outputs.rustc-version}}'
26+
- name: Check ${{'${{steps.toolchain.outputs.cargo-version}}'}}
27+
run: echo '${{steps.toolchain.outputs.cargo-version}}'
28+
- name: Check ${{'${{steps.toolchain.outputs.rustup-version}}'}}
29+
run: echo '${{steps.toolchain.outputs.rustup-version}}'
30+
- run: rustc --version && cargo --version
31+
shell: bash

0 commit comments

Comments
 (0)