File tree Expand file tree Collapse file tree 5 files changed +28
-43
lines changed Expand file tree Collapse file tree 5 files changed +28
-43
lines changed Original file line number Diff line number Diff line change @@ -23,13 +23,19 @@ jobs:
23
23
run : make test
24
24
- name : Run clippy
25
25
run : make clippy
26
+
27
+ - name : Setup MUSL
28
+ if : matrix.os == 'ubuntu-latest'
29
+ run : |
30
+ rustup target add x86_64-unknown-linux-musl
31
+ sudo apt-get -qq install musl-tools
26
32
27
33
- name : Build Release Mac
28
34
if : matrix.os == 'macos-latest'
29
35
run : make release-mac
30
36
- name : Build Release Linux
31
37
if : matrix.os == 'ubuntu-latest'
32
- run : make release-linux
38
+ run : make release-linux-musl
33
39
34
40
- name : Set SHA
35
41
if : matrix.os == 'macos-latest'
44
50
prerelease : true
45
51
files : |
46
52
./release/*.tar.gz
53
+ ./release/*.zip
47
54
env :
48
55
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
49
56
Original file line number Diff line number Diff line change 28
28
- name : Build Release
29
29
run : make build-release
30
30
31
+ build-linux-musl :
32
+ runs-on : ubuntu-latest
33
+ steps :
34
+ - uses : actions/checkout@v2
35
+ - name : Setup MUSL
36
+ run : |
37
+ rustup target add x86_64-unknown-linux-musl
38
+ sudo apt-get -qq install musl-tools
39
+ - name : Build Debug
40
+ run : cargo build --target=x86_64-unknown-linux-musl
41
+ - name : Build Release
42
+ run : |
43
+ cargo build --release --target=x86_64-unknown-linux-musl
44
+
31
45
rustfmt :
32
46
name : Rustfmt
33
47
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change 1
1
2
- .PHONY : test
2
+ .PHONY : debug build-release release-linux-musl test clippy clippy-pedantic install install-debug
3
3
4
4
debug :
5
5
GITUI_LOGGING=true cargo run --features=timing
@@ -12,10 +12,11 @@ release-mac: build-release
12
12
mkdir -p release
13
13
tar -C ./target/release/ -czvf ./release/gitui-mac.tar.gz ./gitui
14
14
15
- release-linux : build-release
16
- strip target/release/gitui
15
+ release-linux-musl :
16
+ cargo build --release --target=x86_64-unknown-linux-musl
17
+ strip target/x86_64-unknown-linux-musl/release/gitui
17
18
mkdir -p release
18
- tar -C ./target/release/ -czvf ./release/gitui-linux.tar.gz ./gitui
19
+ tar -C ./target/x86_64-unknown-linux-musl/ release/ -czvf ./release/gitui-linux-musl .tar.gz ./gitui
19
20
20
21
test :
21
22
cargo test --workspace
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ license = "MIT"
10
10
categories = [" concurrency" ," asynchronous" ]
11
11
12
12
[dependencies ]
13
- git2 = " 0.13.2"
13
+ git2 = { version = " 0.13.2" , default-features = false }
14
14
rayon-core = " 1.7"
15
15
crossbeam-channel = " 0.4"
16
16
log = " 0.4"
You can’t perform that action at this time.
0 commit comments