File tree 11 files changed +2151
-0
lines changed
11 files changed +2151
-0
lines changed Original file line number Diff line number Diff line change
1
+ [build ]
2
+ rustflags = [" -C" , " target-feature=+crt-static" ]
3
+ target = " x86_64-unknown-linux-musl"
Original file line number Diff line number Diff line change
1
+ version : 2
2
+ updates :
3
+ - package-ecosystem : github-actions
4
+ directory : /
5
+ schedule :
6
+ interval : daily
7
+
8
+ - package-ecosystem : cargo
9
+ directory : /
10
+ schedule :
11
+ interval : daily
Original file line number Diff line number Diff line change
1
+ on :
2
+ push :
3
+ branches : [ master ]
4
+ tags : [ 'v*' ]
5
+ pull_request :
6
+ branches : [ master ]
7
+
8
+ name : binaries
9
+
10
+ jobs :
11
+ # release binaries
12
+ release-bins :
13
+ runs-on : ubuntu-latest
14
+ strategy :
15
+ matrix :
16
+ targets :
17
+ - x86_64-unknown-linux-musl
18
+ bins :
19
+ - heretek
20
+
21
+ steps :
22
+ - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
23
+ - uses : dtolnay/rust-toolchain@d76c2a93c593483c9892fd8d2538734f73ed8588 # stable
24
+ with :
25
+ target : ${{ matrix.targets }}
26
+ - run : cargo install cargo-quickinstall
27
+ - run : cargo quickinstall cross
28
+ - run : cross build --bin ${{ matrix.bins }} --locked --target ${{ matrix.targets }} --profile=dist
29
+
30
+ - name : archive
31
+ run : |
32
+ tar -czvf ${{ matrix.bins }}-${{ matrix.targets }}.tar.gz \
33
+ -C target/${{ matrix.targets }}/dist/ ${{ matrix.bins }}
34
+
35
+ - uses : actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32 # v3.1.3
36
+ with :
37
+ name : ${{ matrix.bins }}-${{ matrix.targets }}.tar.gz
38
+ path : ${{ matrix.bins }}-${{ matrix.targets }}.tar.gz
39
+
40
+ - name : Upload binary to release
41
+ if : ${{ startsWith(github.ref, 'refs/tags/v') }}
42
+ uses : svenstaro/upload-release-action@1beeb572c19a9242f4361f4cee78f8e0d9aec5df # v2
43
+ with :
44
+ repo_token : ${{ secrets.GITHUB_TOKEN }}
45
+ file : ${{ matrix.bins }}-${{ matrix.targets }}.tar.gz
46
+ asset_name : ${{ matrix.bins }}-${{ github.ref_name }}-${{ matrix.targets }}.tar.gz
47
+ tag : ${{ github.ref }}
48
+ prerelease : true
49
+ overwrite : true
Original file line number Diff line number Diff line change
1
+ on :
2
+ push :
3
+ branches :
4
+ - master
5
+ pull_request :
6
+ branches :
7
+ - master
8
+
9
+ name : ci
10
+
11
+ jobs :
12
+ # build, test all supported targets
13
+ build-stable :
14
+ runs-on : ubuntu-latest
15
+ strategy :
16
+ matrix :
17
+ targets :
18
+ - x86_64-unknown-linux-musl
19
+ toolchain :
20
+ - stable
21
+
22
+ steps :
23
+ - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
24
+ - uses : dtolnay/rust-toolchain@439cf607258077187679211f12aa6f19af4a0af7 # master
25
+ with :
26
+ toolchain : ${{ matrix.toolchain }}
27
+ target : ${{ matrix.targets }}
28
+ - run : cargo install cross --git https://github.com/cross-rs/cross --force
29
+ - run : cross build --locked --workspace --target ${{ matrix.targets }}
30
+
31
+ # fmt and clippy on nightly builds
32
+ fmt-clippy-nightly :
33
+ runs-on : ubuntu-latest
34
+
35
+ steps :
36
+ - uses : actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
37
+ - uses : dtolnay/rust-toolchain@439cf607258077187679211f12aa6f19af4a0af7 # master
38
+ with :
39
+ toolchain : nightly
40
+ target : x86_64-unknown-linux-musl
41
+ components : rustfmt, clippy
42
+ - run : cargo install cargo-quickinstall
43
+ - run : cargo quickinstall cross
44
+ - run : cargo fmt --all --check
45
+ # - run: cross clippy --target x86_64-unknown-linux-gnu --workspace -- -D warnings
Original file line number Diff line number Diff line change
1
+ /target
You can’t perform that action at this time.
0 commit comments