Skip to content

Commit 466092c

Browse files
Merge pull request #41 from blue-yonder/github-actions
switch from travis to GitHub Actions
2 parents da3317b + 0e36af2 commit 466092c

File tree

4 files changed

+84
-60
lines changed

4 files changed

+84
-60
lines changed

.github/workflows/release.yml

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Release binaries to GitHub
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
release_win64:
9+
name: Build and release Windows 64Bit
10+
runs-on: windows-latest
11+
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
16+
- name: Build
17+
run: |
18+
cargo build --release
19+
Compress-Archive -LiteralPath target/release/di-csv2xml.exe -DestinationPath di-csv2xml-win64.zip
20+
21+
- name: Github Upload
22+
uses: svenstaro/upload-release-action@v1-release
23+
with:
24+
repo_token: ${{ secrets.GITHUB_TOKEN }}
25+
file: di-csv2xml-win64.zip
26+
asset_name: di-csv2xml-win64.zip
27+
tag: ${{ github.ref }}
28+
29+
release_os-x:
30+
name: Build and release OS-X
31+
runs-on: macos-latest
32+
33+
steps:
34+
- name: Checkout
35+
uses: actions/checkout@v2
36+
37+
- name: Build
38+
run: cargo build --release
39+
40+
- name: Github Upload
41+
uses: svenstaro/upload-release-action@v1-release
42+
with:
43+
repo_token: ${{ secrets.GITHUB_TOKEN }}
44+
file: target/release/di-csv2xml
45+
asset_name: di-csv2xml-osx
46+
tag: ${{ github.ref }}

.github/workflows/test.yml

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Build and test
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
win64:
7+
name: Build & Test Win64
8+
runs-on: windows-latest
9+
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v2
13+
14+
- name: Test
15+
run: cargo test --release
16+
17+
osx:
18+
name: Build & Test OS-X
19+
runs-on: macos-latest
20+
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v2
24+
25+
- name: Test
26+
run: cargo test --release
27+
28+
linux:
29+
name: Build & Test Linux
30+
runs-on: ubuntu-latest
31+
32+
steps:
33+
- name: Checkout
34+
uses: actions/checkout@v2
35+
36+
- name: Test
37+
run: cargo test --release

.travis.yml

-57
This file was deleted.

Readme.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# Blue Yonder CSV to XML converter
22

3-
[![Build Status](https://travis-ci.org/blue-yonder/di-csv2xml.svg?branch=master)](https://travis-ci.org/blue-yonder/di-csv2xml)
4-
53
This tool is intended to convert a `.csv` file into an `.xml` file ready to be sent to the
64
Blue Yonder Supply and Demand API. This tool has no schema information and therefore does not
75
perform any validation besides checking for valid `UTF8` encoding.
@@ -83,7 +81,7 @@ dedicated XML-tag, leading to potential errors when attempting to process the XM
8381
### Binary executable
8482

8583
You can [download a binary executable](https://github.com/blue-yonder/di-csv2xml/releases) (for
86-
64Bit OS-X, Windows and Linux) from the release section.
84+
64Bit OS-X or Windows) from the release section.
8785

8886
### From source
8987

0 commit comments

Comments
 (0)