-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Try a Github Actions matrix build * Guess around syntax error * Experiment with uploading release assets
- Loading branch information
1 parent
0c2cfee
commit 16e820b
Showing
4 changed files
with
43 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Release | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
|
||
strategy: | ||
matrix: | ||
os: [macos-latest, ubuntu-latest, windows-latest] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
- name: Build | ||
run: cargo build --release --verbose | ||
- name: Clippy | ||
run: cargo clippy --verbose | ||
- name: Test | ||
run: cargo test --verbose | ||
- name: Publish | ||
run: | | ||
curl \ | ||
--data-binary @./target/release/yj \ | ||
--header 'Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' \ | ||
--header 'Content-Type: application/octet-stream' \ | ||
--url https://uploads.github.com/repos/${{ github.repository }}/releases/1.1.1/assets?name=yj.${{ jobs.build.strategy.matrix.os }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,20 @@ | ||
name: Rust | ||
|
||
on: [push] | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ${{ matrix.os }} | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
os: [macos-latest, ubuntu-latest, windows-latest] | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Build | ||
run: cargo build --verbose | ||
- name: Clippy | ||
run: cargo clippy --verbose | ||
- name: Run tests | ||
run: cargo test --verbose | ||
- uses: actions/checkout@v1 | ||
- name: Build | ||
run: cargo build --verbose | ||
- name: Clippy | ||
run: cargo clippy --verbose | ||
- name: Run tests | ||
run: cargo test --verbose |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters