Skip to content

Commit da29aba

Browse files
committed
git diff
0 parents  commit da29aba

File tree

5 files changed

+422
-0
lines changed

5 files changed

+422
-0
lines changed

.github/workflows/release.yaml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Release Binary
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
build-artifacts:
10+
runs-on: ubuntu-latest
11+
name: Build Artifacts
12+
env:
13+
binary_name: git-diff
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Install pkg-config and libssl-dev
19+
run: sudo apt-get install pkg-config libssl-dev
20+
21+
- name: Build
22+
run: cargo build --release
23+
24+
- name: Create Archive Folder
25+
run: mkdir ${{ runner.os }}
26+
27+
- name: Copy Artifact
28+
run: cp target/release/${{ env.binary_name }} ${{ runner.os }}
29+
30+
- name: Create Tar Archive
31+
run: tar -czf ${{ runner.os }}.tgz ${{ runner.os }}
32+
33+
- name: Store Archive
34+
uses: actions/upload-artifact@v4
35+
with:
36+
name: ${{ runner.os }}
37+
path: ${{ runner.os }}.tgz
38+
39+
create-release:
40+
needs: [build-artifacts]
41+
runs-on: ubuntu-latest
42+
name: Create Release
43+
permissions:
44+
contents: write
45+
steps:
46+
- uses: actions/checkout@v4
47+
- uses: actions/download-artifact@v4
48+
- name: Create Release
49+
uses: ncipollo/release-action@v1
50+
with:
51+
artifacts: "Linux/Linux.tgz"
52+
tag: v0.1.14-alpha

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/target
2+
.DS_Store

Cargo.lock

Lines changed: 212 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[package]
2+
name = "git-diff"
3+
version = "0.1.0"
4+
edition = "2021"
5+
6+
[dependencies]
7+
git2 = "0.18.3"
8+
glob = "0.3.1"

0 commit comments

Comments
 (0)