Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
try again CI
Browse files Browse the repository at this point in the history
  • Loading branch information
connortsui20 committed Feb 12, 2024
1 parent c743b4b commit e3c1eb1
Showing 1 changed file with 38 additions and 38 deletions.
76 changes: 38 additions & 38 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,42 @@
name: Build
on: [push, pull_request]
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "-Dwarnings"
CARGO_TERM_COLOR: always
RUSTFLAGS: "-Dwarnings"
jobs:
build:
runs-on: self-hosted
continue-on-error: false
defaults:
run:
working-directory: ./eggstrain
steps:
- uses: actions/checkout@v3
- name: Install Toolchain
run: rustup toolchain uninstall stable &&
rustup toolchain install stable &&
rustup default stable &&
rustup component add rustfmt &&
rustup component add clippy
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Format check
run: cargo fmt --all -- --check
- name: Clippy check
run: cargo clippy --all-targets --all-features
- name: Generate code coverage
run: cargo llvm-cov --all-features --workspace --codecov --output-path lcov.info
- name: Archive code coverage results
uses: actions/upload-artifact@v4
with:
name: code-coverage-report
path: lcov.info
retention-days: 3
- name: Upload to codecov
uses: codecov/codecov-action@v3
with:
token: be8874e2-10d6-434f-9d52-db6094de31d6
files: lcov.info
name: codecov-umbrella
fail_ci_if_error: true
verbose: true
build:
runs-on: self-hosted
continue-on-error: false
defaults:
run:
working-directory: ./eggstrain
steps:
- uses: actions/checkout@v3
- name: Install Toolchain
run: rustup toolchain uninstall stable &&
rustup toolchain install stable &&
rustup default stable &&
rustup component add rustfmt &&
rustup component add clippy
- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov
- name: Format check
run: cargo fmt --all -- --check
- name: Clippy check
run: cargo clippy --all-targets --all-features
- name: Generate code coverage
run: cargo llvm-cov --all-features --workspace --codecov --output-path lcov.info
- name: Archive code coverage results
uses: actions/upload-artifact@v4
with:
name: code-coverage-report
path: lcov.info
retention-days: 3
- name: Upload to codecov
uses: codecov/codecov-action@v3
with:
token: be8874e2-10d6-434f-9d52-db6094de31d6
files: lcov.info
name: codecov-umbrella
fail_ci_if_error: true
verbose: true

0 comments on commit e3c1eb1

Please sign in to comment.