Skip to content

Commit 8ee4212

Browse files
committed
switch from travis to GitHub Actions
1 parent da3317b commit 8ee4212

File tree

4 files changed

+84
-58
lines changed

4 files changed

+84
-58
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-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ dedicated XML-tag, leading to potential errors when attempting to process the XM
8383
### Binary executable
8484

8585
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.
86+
64Bit OS-X or Windows) from the release section.
8787

8888
### From source
8989

0 commit comments

Comments
 (0)