Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 5 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,9 @@ name: Release
jobs:
test:
name: Test
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: x86_64-unknown-linux-musl
default: true
- run: sudo apt-get install -y musl-tools
- uses: actions-rs/cargo@v1
with:
Expand All @@ -30,7 +25,7 @@ jobs:
path: ./target/x86_64-unknown-linux-musl/release/magicpak
build_docker_images:
name: Build and push docker images
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
needs: test
steps:
- uses: actions/checkout@v2
Expand All @@ -41,7 +36,7 @@ jobs:
- run: PUSH_IMAGES=true ./dockerfile/build.sh ./magicpak
test_examples:
name: Test examples
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
needs: build_docker_images
steps:
- uses: actions/checkout@v2
Expand All @@ -52,7 +47,7 @@ jobs:
done
release:
name: Release
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
needs: test_examples
steps:
- uses: actions/download-artifact@v2
Expand All @@ -66,7 +61,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
upload:
name: Upload to crates.io
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
needs: release
steps:
- uses: actions/checkout@v2
Expand Down
15 changes: 4 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,12 @@ name: Test and Lint
jobs:
test:
name: Test
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
strategy:
matrix:
target: [x86_64-unknown-linux-musl]
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: ${{ matrix.target }}
default: true
- run: sudo apt-get install -y musl-tools
- uses: actions-rs/cargo@v1
with:
Expand All @@ -32,27 +27,25 @@ jobs:
args: --release --all-features --target=${{ matrix.target }}
fmt:
name: Rustfmt
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- run: rustup component add rustfmt
- uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
clippy:
name: Clippy
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- run: rustup component add clippy
- uses: actions-rs/clippy-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
args: --all-features -- -D warnings
test_examples:
name: Test examples
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
needs: test
steps:
- uses: actions/checkout@v2
Expand Down
Loading