Skip to content

Commit

Permalink
Merge pull request #41 from blue-yonder/github-actions
Browse files Browse the repository at this point in the history
switch from travis to GitHub Actions
  • Loading branch information
sebastian-neubauer-by authored Feb 4, 2022
2 parents da3317b + 0e36af2 commit 466092c
Show file tree
Hide file tree
Showing 4 changed files with 84 additions and 60 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/release.yml
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 }}
37 changes: 37 additions & 0 deletions .github/workflows/test.yml
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
57 changes: 0 additions & 57 deletions .travis.yml

This file was deleted.

4 changes: 1 addition & 3 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# Blue Yonder CSV to XML converter

[![Build Status](https://travis-ci.org/blue-yonder/di-csv2xml.svg?branch=master)](https://travis-ci.org/blue-yonder/di-csv2xml)

This tool is intended to convert a `.csv` file into an `.xml` file ready to be sent to the
Blue Yonder Supply and Demand API. This tool has no schema information and therefore does not
perform any validation besides checking for valid `UTF8` encoding.
Expand Down Expand Up @@ -83,7 +81,7 @@ dedicated XML-tag, leading to potential errors when attempting to process the XM
### Binary executable

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

### From source

Expand Down

0 comments on commit 466092c

Please sign in to comment.