rename CI files

This commit is contained in:
Sridhar Ratnakumar 2021-04-08 13:15:49 -04:00
parent da214f3e74
commit d58930a9ad
3 changed files with 40 additions and 39 deletions

19
.github/workflows/ci-nix.yml vendored Normal file
View file

@ -0,0 +1,19 @@
name: "CI Nix"
on:
pull_request:
push:
jobs:
check:
name: Rust project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- uses: cachix/install-nix-action@v13
with:
install_url: https://nixos-nix-install-tests.cachix.org/serve/lb41az54kzk6j12p81br4bczary7m145/install
install_options: '--tarball-url-prefix https://nixos-nix-install-tests.cachix.org/serve'
extra_nix_config: |
experimental-features = nix-command flakes
- run: nix develop -c rustc --version
- run: nix run . -- ping
- run: nix-build

View file

@ -1,18 +1,24 @@
name: "CI" on: [push]
on:
pull_request: name: CI
push:
jobs: jobs:
build: check:
name: Rust project
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2.3.4 - uses: actions/checkout@v2
- uses: cachix/install-nix-action@v13 - name: Install latest nightly
uses: actions-rs/toolchain@v1
with: with:
install_url: https://nixos-nix-install-tests.cachix.org/serve/lb41az54kzk6j12p81br4bczary7m145/install toolchain: nightly
install_options: '--tarball-url-prefix https://nixos-nix-install-tests.cachix.org/serve' override: true
extra_nix_config: | components: rustfmt, clippy
experimental-features = nix-command flakes
- run: nix develop -c rustc --version # `cargo check` command here will use installed `nightly`
- run: nix run . -- ping # as it is set as an "override" for current directory
- run: nix-build
- name: Run cargo check
uses: actions-rs/cargo@v1
with:
command: check

View file

@ -1,24 +0,0 @@
on: [push]
name: build
jobs:
check:
name: Rust project
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
override: true
components: rustfmt, clippy
# `cargo check` command here will use installed `nightly`
# as it is set as an "override" for current directory
- name: Run cargo check
uses: actions-rs/cargo@v1
with:
command: check