Skip to content

Commit e5ea0c7

Browse files
Merge pull request #2 from ADawesomeguy/workflows
Add build check and release draft workflows
2 parents c6ab8df + d2f2360 commit e5ea0c7

2 files changed

Lines changed: 68 additions & 0 deletions

File tree

.github/workflows/check-build.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: check-build
2+
3+
on:
4+
push:
5+
branches: '*'
6+
pull_request:
7+
branches: '*'
8+
9+
env:
10+
CARGO_TERM_COLOR: always
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v2
20+
- name: Use Rust nightly
21+
uses: actions-rs/toolchain@v1
22+
with:
23+
toolchain: nightly
24+
target: x86_64-pc-windows-gnu
25+
override: true
26+
- name: Build with Cargo
27+
uses: actions-rs/cargo@v1
28+
with:
29+
use-cross: true
30+
command: build
31+
args: --release --target=x86_64-pc-windows-gnu
32+
- name: Run tests
33+
run: cargo test --verbose
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: draft-release
2+
3+
on:
4+
push:
5+
tags: '*'
6+
7+
env:
8+
CARGO_TERM_COLOR: always
9+
10+
jobs:
11+
build:
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v2
18+
- name: Use Rust nightly
19+
uses: actions-rs/toolchain@v1
20+
with:
21+
toolchain: nightly
22+
target: x86_64-pc-windows-gnu
23+
override: true
24+
- name: Build with Cargo
25+
uses: actions-rs/cargo@v1
26+
with:
27+
use-cross: true
28+
command: build
29+
args: --release --target=x86_64-pc-windows-gnu
30+
- name: Create draft release
31+
uses: ncipollo/release-action@v1
32+
with:
33+
artifacts: "target/x86_64-pc-windows-gnu/release/rw3d_cli.exe"
34+
draft: true
35+
generateReleaseNotes: true

0 commit comments

Comments
 (0)