Skip to content

Commit

Permalink
GH Actions setup (#5)
Browse files Browse the repository at this point in the history
* Initial actions setup
* Removed toolchain option
* TOML file not supported yet by rust-actions
See  actions-rs/toolchain#126
* Downgraded toolchain file to pre-rustup 1.23.0
  • Loading branch information
jeronimosg authored Jun 4, 2021
1 parent 71d855f commit c3e23e0
Show file tree
Hide file tree
Showing 3 changed files with 80 additions and 3 deletions.
79 changes: 79 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
name: Rust

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

env:
CARGO_TERM_COLOR: always

jobs:
x86_64-unknown-linux-gnu:
runs-on: ubuntu-latest
name: x86_64-unknown-linux-gnu
steps:
- name: Repo checkout
uses: actions/checkout@v2
- name: Toolchain setup
uses: actions-rs/toolchain@v1
with:
target: x86_64-unknown-linux-gnu
override: true
- name: Build release
uses: actions-rs/cargo@v1
with:
command: build
args: --release --verbose
- name: Test release
uses: actions-rs/cargo@v1
with:
command: test
args: --release --verbose

x86_64-pc-windows-msvc:
runs-on: windows-latest
name: x86_64-pc-windows-msvc
steps:
- name: Repo checkout
uses: actions/checkout@v2
- name: Toolchain setup
uses: actions-rs/toolchain@v1
with:
target: x86_64-pc-windows-msvc
override: true
- name: Build release
uses: actions-rs/cargo@v1
with:
command: build
args: --release --verbose
- name: Test release
uses: actions-rs/cargo@v1
with:
command: test
args: --release --verbose

x86_64-apple-darwin :
runs-on: macos-latest
name: x86_64-apple-darwin
steps:
- name: Repo checkout
uses: actions/checkout@v2
- name: Toolchain setup
uses: actions-rs/toolchain@v1
with:
target: x86_64-apple-darwin
override: true
- name: Build release
uses: actions-rs/cargo@v1
with:
command: build
args: --release --verbose
- name: Test release
uses: actions-rs/cargo@v1
with:
command: test
args: --release --verbose


1 change: 1 addition & 0 deletions rust-toolchain
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nightly-2021-05-20
3 changes: 0 additions & 3 deletions rust-toolchain.toml

This file was deleted.

0 comments on commit c3e23e0

Please sign in to comment.