Skip to content
This repository was archived by the owner on Apr 16, 2023. It is now read-only.

Commit 49b88e6

Browse files
authored
Merge pull request #4 from CodeDead/release/v0.1.0
Release/v0.1.0
2 parents 085927b + bb547ac commit 49b88e6

File tree

10 files changed

+3389
-2
lines changed

10 files changed

+3389
-2
lines changed

.github/workflows/rust.yml

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
name: Deploy
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- development
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v1
16+
17+
- name: Install latest rust toolchain
18+
uses: actions-rs/toolchain@v1
19+
with:
20+
toolchain: stable
21+
default: true
22+
override: true
23+
24+
- name: Build
25+
run: cargo build --all --release && strip target/release/text-diff && mv target/release/text-diff target/release/text-diff_amd64
26+
27+
- name: Release
28+
uses: softprops/action-gh-release@v1
29+
if: startsWith(github.ref, 'refs/tags/')
30+
with:
31+
files: |
32+
target/release/text-diff_amd64
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
36+
build-win:
37+
runs-on: windows-latest
38+
39+
steps:
40+
- name: Checkout
41+
uses: actions/checkout@v1
42+
43+
- name: Install latest rust toolchain
44+
uses: actions-rs/toolchain@v1
45+
with:
46+
toolchain: stable
47+
default: true
48+
override: true
49+
50+
- name: Build
51+
run: cargo build --all --release
52+
53+
- name: Release
54+
uses: softprops/action-gh-release@v1
55+
if: startsWith(github.ref, 'refs/tags/')
56+
with:
57+
files: target/release/text-diff.exe
58+
env:
59+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
60+
61+
build-mac:
62+
runs-on: macos-latest
63+
64+
steps:
65+
- name: Checkout
66+
uses: actions/checkout@v1
67+
68+
- name: Install latest rust toolchain
69+
uses: actions-rs/toolchain@v1
70+
with:
71+
toolchain: stable
72+
target: x86_64-apple-darwin
73+
default: true
74+
override: true
75+
76+
- name: Build for mac
77+
run: cargo build --all --release && strip target/release/text-diff && mv target/release/text-diff target/release/text-diff_darwin
78+
79+
- name: Release
80+
uses: softprops/action-gh-release@v1
81+
if: startsWith(github.ref, 'refs/tags/')
82+
with:
83+
files: |
84+
target/release/text-diff_darwin
85+
env:
86+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)