-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from blue-yonder/github-actions
switch from travis to GitHub Actions
- Loading branch information
Showing
4 changed files
with
84 additions
and
60 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,46 @@ | ||
name: Release binaries to GitHub | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
release_win64: | ||
name: Build and release Windows 64Bit | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Build | ||
run: | | ||
cargo build --release | ||
Compress-Archive -LiteralPath target/release/di-csv2xml.exe -DestinationPath di-csv2xml-win64.zip | ||
- name: Github Upload | ||
uses: svenstaro/upload-release-action@v1-release | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: di-csv2xml-win64.zip | ||
asset_name: di-csv2xml-win64.zip | ||
tag: ${{ github.ref }} | ||
|
||
release_os-x: | ||
name: Build and release OS-X | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Build | ||
run: cargo build --release | ||
|
||
- name: Github Upload | ||
uses: svenstaro/upload-release-action@v1-release | ||
with: | ||
repo_token: ${{ secrets.GITHUB_TOKEN }} | ||
file: target/release/di-csv2xml | ||
asset_name: di-csv2xml-osx | ||
tag: ${{ github.ref }} |
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,37 @@ | ||
name: Build and test | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
win64: | ||
name: Build & Test Win64 | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Test | ||
run: cargo test --release | ||
|
||
osx: | ||
name: Build & Test OS-X | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Test | ||
run: cargo test --release | ||
|
||
linux: | ||
name: Build & Test Linux | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Test | ||
run: cargo test --release |
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