Skip to content

Commit 5b2ceb4

Browse files
authored
Merge pull request #97 from ngeor/github-actions
GitHub actions
2 parents ec8880f + 07b66c4 commit 5b2ceb4

File tree

5 files changed

+74
-24
lines changed

5 files changed

+74
-24
lines changed

.github/workflows/build.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
on: push
2+
jobs:
3+
Build:
4+
runs-on: ubuntu-latest
5+
steps:
6+
- name: Checkout repository code
7+
uses: actions/checkout@v2
8+
- name: Install Rust toolchain
9+
uses: actions-rs/toolchain@v1
10+
with:
11+
toolchain: stable
12+
target: x86_64-pc-windows-gnu
13+
- name: Build Debug
14+
uses: actions-rs/cargo@v1
15+
with:
16+
command: build
17+
- name: Test
18+
uses: actions-rs/cargo@v1
19+
with:
20+
command: test
21+
- name: Build Release
22+
uses: actions-rs/cargo@v1
23+
with:
24+
command: build
25+
args: --release
26+
- name: Build Release Windows
27+
uses: actions-rs/cargo@v1
28+
with:
29+
command: build
30+
use-cross: true
31+
args: --release --target x86_64-pc-windows-gnu

.github/workflows/release.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
on:
2+
push:
3+
tags:
4+
- v*
5+
jobs:
6+
Release:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout repository code
10+
uses: actions/checkout@v2
11+
- name: Install Rust toolchain
12+
uses: actions-rs/toolchain@v1
13+
with:
14+
toolchain: stable
15+
target: x86_64-pc-windows-gnu
16+
- name: Build Debug
17+
uses: actions-rs/cargo@v1
18+
with:
19+
command: build
20+
- name: Test
21+
uses: actions-rs/cargo@v1
22+
with:
23+
command: test
24+
- name: Build Release
25+
uses: actions-rs/cargo@v1
26+
with:
27+
command: build
28+
args: --release
29+
- name: Build Release Windows
30+
uses: actions-rs/cargo@v1
31+
with:
32+
command: build
33+
use-cross: true
34+
args: --release --target x86_64-pc-windows-gnu
35+
- name: Release
36+
uses: softprops/action-gh-release@v1
37+
with:
38+
draft: true
39+
files: |
40+
target/release/rusty_basic
41+
target/x86_64-pc-windows-gnu/release/rusty_basic.exe

.travis.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rusty_basic"
3-
version = "0.6.0"
3+
version = "0.6.1"
44
authors = ["Nikolaos Georgiou <[email protected]>"]
55
edition = "2018"
66

0 commit comments

Comments
 (0)