File tree Expand file tree Collapse file tree 18 files changed +2394
-0
lines changed Expand file tree Collapse file tree 18 files changed +2394
-0
lines changed Original file line number Diff line number Diff line change
1
+ version : 2
2
+
3
+ updates :
4
+ - package-ecosystem : cargo
5
+ directory : /
6
+ schedule :
7
+ interval : daily
8
+
9
+ - package-ecosystem : github-actions
10
+ directory : /
11
+ schedule :
12
+ interval : daily
Original file line number Diff line number Diff line change
1
+ name : ci
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ pull_request :
8
+
9
+ jobs :
10
+ build :
11
+ name : build
12
+ runs-on : ${{ matrix.os }}
13
+ strategy :
14
+ matrix :
15
+ include :
16
+ - target : x86_64-apple-darwin
17
+ os : macos-latest
18
+ - target : x86_64-pc-windows-gnu
19
+ os : windows-latest
20
+ - target : x86_64-pc-windows-msvc
21
+ os : windows-latest
22
+ - target : x86_64-unknown-linux-gnu
23
+ os : ubuntu-latest
24
+ - target : x86_64-unknown-linux-musl
25
+ os : ubuntu-latest
26
+
27
+ steps :
28
+ - name : Checkout
29
+ uses : actions/checkout@v3
30
+
31
+ - name : Cargo build
32
+ run : |
33
+ rustup toolchain install stable --profile minimal -t ${{ matrix.target }}
34
+ cargo +stable build --target ${{ matrix.target }}
35
+
36
+ clippy-rustfmt :
37
+ name : clippy-rustfmt
38
+ runs-on : ubuntu-latest
39
+ steps :
40
+ - name : Checkout
41
+ uses : actions/checkout@v3
42
+
43
+ - name : " Cargo: clippy, fmt"
44
+ run : |
45
+ rustup toolchain install stable --profile minimal -c clippy
46
+ rustup toolchain install nightly --profile minimal -c rustfmt
47
+ cargo +stable clippy -- -D warnings
48
+ cargo +nightly fmt -- --check
Original file line number Diff line number Diff line change
1
+ name : release
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - v[0-9]+.[0-9]+.[0-9]+
7
+
8
+ jobs :
9
+ create_release :
10
+ name : create_release
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - name : Create release
14
+ uses : softprops/action-gh-release@v1
15
+ with :
16
+ body : " [Changelog](https://github.com/nix-community/nix-melt/blob/main/CHANGELOG.md)"
17
+
18
+ release :
19
+ name : release
20
+ needs : create_release
21
+ runs-on : ${{ matrix.os }}
22
+ strategy :
23
+ matrix :
24
+ include :
25
+ - target : x86_64-apple-darwin
26
+ os : macos-latest
27
+ - target : x86_64-pc-windows-gnu
28
+ os : windows-latest
29
+ ext : .exe
30
+ - target : x86_64-pc-windows-msvc
31
+ os : windows-latest
32
+ ext : .exe
33
+ - target : x86_64-unknown-linux-gnu
34
+ os : ubuntu-latest
35
+ - target : x86_64-unknown-linux-musl
36
+ os : ubuntu-latest
37
+
38
+ steps :
39
+ - name : Checkout
40
+ uses : actions/checkout@v3
41
+
42
+ - name : Cargo build
43
+ run : |
44
+ rustup toolchain install nightly --profile minimal -t ${{ matrix.target }}
45
+ cargo +nightly build --release --target ${{ matrix.target }}
46
+ env :
47
+ RUSTFLAGS : -C strip=symbols
48
+
49
+ - name : Upload asset
50
+ uses : svenstaro/upload-release-action@v2
51
+ with :
52
+ repo_token : ${{ github.token }}
53
+ tag : ${{ github.ref }}
54
+ file : target/${{ matrix.target }}/release/nix-melt${{ matrix.ext }}
55
+ asset_name : nix-melt-${{ matrix.target }}${{ matrix.ext }}
Original file line number Diff line number Diff line change
1
+ /result
2
+ /target
Original file line number Diff line number Diff line change
1
+ # Changelog
2
+
3
+ ## v0.1.0 - 2023-04-25
4
+
5
+ First release
You can’t perform that action at this time.
0 commit comments