From d58930a9ade3c11a1790c04b01f197cd71a4eac4 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Thu, 8 Apr 2021 13:15:49 -0400 Subject: [PATCH] rename CI files --- .github/workflows/ci-nix.yml | 19 +++++++++++++++++++ .github/workflows/ci.yml | 36 +++++++++++++++++++++--------------- .github/workflows/ci2.yml | 24 ------------------------ 3 files changed, 40 insertions(+), 39 deletions(-) create mode 100644 .github/workflows/ci-nix.yml delete mode 100644 .github/workflows/ci2.yml diff --git a/.github/workflows/ci-nix.yml b/.github/workflows/ci-nix.yml new file mode 100644 index 0000000..14b4fc6 --- /dev/null +++ b/.github/workflows/ci-nix.yml @@ -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 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0915d63..02cfa36 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,18 +1,24 @@ -name: "CI" -on: - pull_request: - push: +on: [push] + +name: CI + jobs: - build: + 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 + - 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 diff --git a/.github/workflows/ci2.yml b/.github/workflows/ci2.yml deleted file mode 100644 index 310dc33..0000000 --- a/.github/workflows/ci2.yml +++ /dev/null @@ -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