diff options
author | Stephan Dilly <dilly.stephan@gmail.com> | 2020-06-06 19:24:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-06 19:24:48 +0200 |
commit | 5bfdb40a141720c6eac7c20908f586c0c6c4a788 (patch) | |
tree | 136a53c4f0f1e70a2805e31a74553c0d315bdc5a /.github | |
parent | 3dc111914235e6472c13055401934fe6f06d1e57 (diff) |
commit details in log (#107)
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/cd.yml | 12 | ||||
-rw-r--r-- | .github/workflows/ci.yml | 29 |
2 files changed, 34 insertions, 7 deletions
diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index db9b9c51..3c059f23 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -10,20 +10,28 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest, windows-latest] - rust: [stable] + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v2 - name: Get version id: get_version run: echo ::set-output name=version::${GITHUB_REF/refs\/tags\//} + + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + profile: minimal + components: clippy + - name: Build run: cargo build - name: Run tests run: make test - name: Run clippy run: | - rustup component add clippy + cargo clean make clippy - name: Setup MUSL diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 88762cf7..9ddf9e45 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -13,19 +13,29 @@ jobs: strategy: matrix: os: [ubuntu-latest, windows-latest, macos-latest] - rust: [stable] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v2 + + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + profile: minimal + components: clippy + - name: Build Debug - run: cargo build + run: | + rustc --version + cargo build + - name: Run tests run: make test + - name: Run clippy run: | - rustup component add clippy cargo clean make clippy - name: Build Release @@ -35,9 +45,15 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 + - name: Install Rust + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + profile: minimal + target: x86_64-unknown-linux-musl + - name: Setup MUSL run: | - rustup target add x86_64-unknown-linux-musl sudo apt-get -qq install musl-tools - name: Build Debug run: cargo build --target=x86_64-unknown-linux-musl @@ -51,7 +67,10 @@ jobs: steps: - uses: actions/checkout@master - name: Install Rust - run: rustup update stable && rustup default stable && rustup component add rustfmt + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + components: rustfmt - run: cargo fmt -- --check sec: |