Skip to content
Permalink
Browse files

Changing to github actions (#35)

* Change to Github Action.

* Adding cache.
  • Loading branch information
Jorropo authored and YaronWittenstein committed Nov 13, 2019
1 parent d4e7713 commit 6f08c7d9e95660363fddcc2307bf8e98d8989290
Showing with 85 additions and 140 deletions.
  1. +85 −0 .github/workflows/rust.yml
  2. +0 −71 .travis.yml
  3. +0 −69 scripts/ci.sh
@@ -0,0 +1,85 @@
name: CI

Check warning on line 1 in .github/workflows/rust.yml

GitHub Actions / Build (ubuntu-latest)

.github/workflows/rust.yml#L1

The process '/bin/tar' failed with exit code 2

Check warning on line 1 in .github/workflows/rust.yml

GitHub Actions / Build (ubuntu-latest, --release)

.github/workflows/rust.yml#L1

The process '/bin/tar' failed with exit code 2

Check warning on line 1 in .github/workflows/rust.yml

GitHub Actions / Build (macos-latest)

.github/workflows/rust.yml#L1

The process '/usr/bin/tar' failed with exit code 1

Check warning on line 1 in .github/workflows/rust.yml

GitHub Actions / Build (macos-latest, --release)

.github/workflows/rust.yml#L1

The process '/usr/bin/tar' failed with exit code 1

on:
push:
branches:
- master
- develop
pull_request:
branches:
- master
- develop

jobs:
Lint:
runs-on: ubuntu-latest
strategy:
fail-fast: False
steps:
- name: Download commit
uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Cache cargo
id: cache-cargo
uses: actions/cache@v1
with:
path: ~/.cargo/
key: ${{ runner.os }}-lint-cargo
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
- name: Lint
uses: actions-rs/cargo@v1
with:
toolchain: nightly
command: fmt
args: --all -- --check
Build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: False
matrix:
os: [ubuntu-latest, macos-latest]
# To enable windows build delete the line above and this one then uncoment the one under
#os: [ubuntu-latest, macos-latest, windows-latest]
# The "" is just debug
release: ["", "--release"]
steps:
- name: Download commit
uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Cache cargo
id: cache-cargo
uses: actions/cache@v1
with:
path: .cargo/
key: ${{ runner.os }}-${{ matrix.release }}-cargo
- name: Install latest nightly
uses: actions-rs/toolchain@v1
with:
toolchain: nightly
- name: Build
uses: actions-rs/cargo@v1
with:
toolchain: nightly
command: build
args: ${{ matrix.release }} --all
- name: Test
uses: actions-rs/cargo@v1
with:
toolchain: nightly
command: test
args: ${{ matrix.release }} --all
env:
RUST_TEST_THREADS: 1
- name: Prepare uploads
shell: bash
run: mkdir bins/ && for i in $(ls target/{debug,release}/{libsvm_runtime_c_api.{so,dylib,dll},svm_wasmer.h}); do mv $i bins/; done
- name: Upload bins
uses: actions/upload-artifact@master
with:
name: bins-${{ runner.os }}${{ matrix.release }}
path: bins/

This file was deleted.

This file was deleted.

0 comments on commit 6f08c7d

Please sign in to comment.
You can’t perform that action at this time.