mirror of
https://github.com/theryangeary/choose
synced 2024-11-29 14:20:17 +00:00
Update github workflows
This commit is contained in:
parent
3f147da84c
commit
e31a1f1c04
2 changed files with 37 additions and 8 deletions
33
.github/workflows/release.yml
vendored
33
.github/workflows/release.yml
vendored
|
@ -16,12 +16,20 @@ jobs:
|
||||||
- name: Check style
|
- name: Check style
|
||||||
run: cargo fmt -- --check
|
run: cargo fmt -- --check
|
||||||
|
|
||||||
- name: Build
|
- name: Run unit tests
|
||||||
run: cargo build --verbose --release
|
|
||||||
|
|
||||||
- name: Run tests
|
|
||||||
run: cargo test --verbose
|
run: cargo test --verbose
|
||||||
|
|
||||||
|
- name: Rust end-to-end test
|
||||||
|
run: test/e2e_test.sh
|
||||||
|
|
||||||
|
- name: Build x86_64-unknown-linux-gnu
|
||||||
|
run: cargo build --verbose --release --target x86_64-unknown-linux-gnu
|
||||||
|
|
||||||
|
- name: Build x86_64-unknown-linux-musl
|
||||||
|
run: |
|
||||||
|
rustup target add x86_64-unknown-linux-musl
|
||||||
|
cargo build --verbose --release --target x86_64-unknown-linux-musl
|
||||||
|
|
||||||
- name: Create GitHub release
|
- name: Create GitHub release
|
||||||
id: create-release
|
id: create-release
|
||||||
uses: actions/create-release@v1
|
uses: actions/create-release@v1
|
||||||
|
@ -35,14 +43,25 @@ jobs:
|
||||||
prerelease: false
|
prerelease: false
|
||||||
|
|
||||||
- name: Upload binary to GitHub release
|
- name: Upload binary to GitHub release
|
||||||
id: upload-release-asset
|
id: upload-x86_64-unknown-linux-gnu-release-asset
|
||||||
uses: actions/upload-release-asset@v1.0.1
|
uses: actions/upload-release-asset@v1.0.1
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
with:
|
with:
|
||||||
upload_url: ${{ steps.create-release.outputs.upload_url }}
|
upload_url: ${{ steps.create-release.outputs.upload_url }}
|
||||||
asset_path: target/release/choose
|
asset_path: target/x86_64-unknown-linux-gnu/release/choose
|
||||||
asset_name: choose
|
asset_name: choose-x86_64-unknown-linux-gnu
|
||||||
|
asset_content_type: application/raw
|
||||||
|
|
||||||
|
- name: Upload musl binary to GitHub release
|
||||||
|
id: upload-x86_64-unknown-linux-musl-release-asset
|
||||||
|
uses: actions/upload-release-asset@v1.0.1
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
upload_url: ${{ steps.create-release.outputs.upload_url }}
|
||||||
|
asset_path: target/x86_64-unknown-linux-musl/release/choose
|
||||||
|
asset_name: choose-x86_64-unknown-linux-musl
|
||||||
asset_content_type: application/raw
|
asset_content_type: application/raw
|
||||||
|
|
||||||
- name: Create crates.io release
|
- name: Create crates.io release
|
||||||
|
|
12
.github/workflows/rust.yml
vendored
12
.github/workflows/rust.yml
vendored
|
@ -16,9 +16,19 @@ jobs:
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Check style
|
- name: Check style
|
||||||
run: cargo fmt -- --check
|
run: cargo fmt -- --check
|
||||||
|
|
||||||
|
# this will report success even if there are warnings, and should be manually checked for now
|
||||||
|
- name: Lint
|
||||||
|
run: cargo clippy
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: cargo build --verbose
|
run: cargo build --verbose
|
||||||
- name: Run tests
|
|
||||||
|
- name: Run unit tests
|
||||||
run: cargo test --verbose
|
run: cargo test --verbose
|
||||||
|
|
||||||
|
- name: Run end-to-end tests
|
||||||
|
run: test/e2e_test.sh
|
||||||
|
|
Loading…
Reference in a new issue