@@ -25,15 +25,16 @@ jobs:
25
25
echo "$ref";
26
26
echo "::set-output name=name::$ref"
27
27
- uses : actions/checkout@v3
28
+ # manually install and use rustup, since dtolnay/rust-toolchain is not supported on older versions of Ubuntu
28
29
- name : " System Setup"
29
30
run : |
30
- apt-get update;
31
- apt-get --assume-yes -f install curl build-essential pkg-config;
32
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain stable -y;
33
- $HOME/.cargo/bin/cargo install --force cargo-deb
31
+ apt-get update;
32
+ apt-get --assume-yes -f install curl build-essential pkg-config;
33
+ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain stable -y;
34
+ $HOME/.cargo/bin/cargo install --force cargo-deb
34
35
env :
35
- DEBIAN_FRONTEND : noninteractive
36
- TZ : " America/St_Johns"
36
+ DEBIAN_FRONTEND : noninteractive
37
+ TZ : " America/St_Johns"
37
38
- name : " Build Deb"
38
39
run : $HOME/.cargo/bin/cargo +stable deb --output "target/debian/git-interactive-rebase-tool-${{ steps.ref.outputs.name }}-ubuntu-${{ matrix.version }}_amd64.deb"
39
40
- name : " Upload Release"
46
47
build-ubuntu :
47
48
strategy :
48
49
matrix :
49
- version : ['18.04', '20.04', '22.04']
50
+ version : ['18.04', '20.04', '22.04', '22.10', '23.04' ]
50
51
runs-on : ubuntu-latest
51
52
timeout-minutes : 10
52
53
container :
@@ -65,13 +66,15 @@ jobs:
65
66
- uses : actions/checkout@v3
66
67
- name : " System Setup"
67
68
run : |
68
- apt-get update;
69
- apt-get --assume-yes -f install curl build-essential pkg-config liblzma-dev;
70
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain stable -y;
71
- $HOME/.cargo/bin/cargo install --force cargo-deb
69
+ apt-get update;
70
+ apt-get --assume-yes -f install curl build-essential pkg-config;
72
71
env :
73
- DEBIAN_FRONTEND : noninteractive
74
- TZ : " America/St_Johns"
72
+ DEBIAN_FRONTEND : noninteractive
73
+ TZ : " America/St_Johns"
74
+ - uses : dtolnay/rust-toolchain@stable
75
+ - uses : baptiste0928/cargo-install@v1
76
+ with :
77
+ crate : cargo-deb
75
78
- name : " Build Deb"
76
79
run : $HOME/.cargo/bin/cargo +stable deb --output "target/debian/git-interactive-rebase-tool-${{ steps.ref.outputs.name }}-ubuntu-${{ matrix.version }}_amd64.deb"
77
80
- name : " Upload Release"
@@ -82,48 +85,10 @@ jobs:
82
85
env :
83
86
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
84
87
85
- build-debian-legacy :
86
- strategy :
87
- matrix :
88
- version : ['8']
89
- runs-on : ubuntu-latest
90
- timeout-minutes : 10
91
- container :
92
- image : ' docker://debian:${{ matrix.version }}-slim'
93
- steps :
94
- - name : " Get Tag Name"
95
- id : ref
96
- shell : bash
97
- run : |
98
- ref="${{ github.ref }}";
99
- ref="${ref//refs\/heads\//}";
100
- ref="${ref//refs\/tags\//}";
101
- ref="${ref//master/dev}";
102
- echo "$ref";
103
- echo "::set-output name=name::$ref"
104
- - uses : actions/checkout@v3
105
- - name : " System Setup"
106
- run : |
107
- apt-get update;
108
- apt-get --assume-yes -f install curl build-essential pkg-config;
109
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain stable -y;
110
- $HOME/.cargo/bin/cargo install --force cargo-deb
111
- env :
112
- DEBIAN_FRONTEND : noninteractive
113
- TZ : " America/St_Johns"
114
- - name : " Build Deb"
115
- run : $HOME/.cargo/bin/cargo +stable deb --output "target/debian/git-interactive-rebase-tool-${{ steps.ref.outputs.name }}-debian-${{ matrix.version }}_amd64.deb"
116
- - name : " Upload Release"
117
- uses : softprops/action-gh-release@v1
118
- with :
119
- files : |
120
- target/debian/*.deb
121
- env :
122
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
123
88
build-debian :
124
89
strategy :
125
90
matrix :
126
- version : ['9 ', '10 ', 'bullseye ', 'sid']
91
+ version : ['10 ', '11 ', '12 ', 'sid']
127
92
runs-on : ubuntu-latest
128
93
timeout-minutes : 10
129
94
container :
@@ -142,13 +107,15 @@ jobs:
142
107
- uses : actions/checkout@v3
143
108
- name : " System Setup"
144
109
run : |
145
- apt-get update;
146
- apt-get --assume-yes -f install curl build-essential pkg-config liblzma-dev;
147
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- --default-toolchain stable -y;
148
- $HOME/.cargo/bin/cargo install --force cargo-deb
110
+ apt-get update;
111
+ apt-get --assume-yes -f install curl build-essential pkg-config;
149
112
env :
150
- DEBIAN_FRONTEND : noninteractive
151
- TZ : " America/St_Johns"
113
+ DEBIAN_FRONTEND : noninteractive
114
+ TZ : " America/St_Johns"
115
+ - uses : dtolnay/rust-toolchain@stable
116
+ - uses : baptiste0928/cargo-install@v1
117
+ with :
118
+ crate : cargo-deb
152
119
- name : " Build Deb"
153
120
run : $HOME/.cargo/bin/cargo +stable deb --output "target/debian/git-interactive-rebase-tool-${{ steps.ref.outputs.name }}-debian-${{ matrix.version }}_amd64.deb"
154
121
- name : " Upload Release"
@@ -163,8 +130,9 @@ jobs:
163
130
timeout-minutes : 5
164
131
steps :
165
132
- uses : actions/checkout@v3
133
+ - uses : dtolnay/rust-toolchain@stable
166
134
- name : " Build"
167
- run : " cargo build --release"
135
+ run : " cargo +stable build --release"
168
136
- name : " Rename"
169
137
run : " cp target/release/interactive-rebase-tool target/release/macos-interactive-rebase-tool"
170
138
- name : " Upload Release"
@@ -179,11 +147,12 @@ jobs:
179
147
timeout-minutes : 10
180
148
steps :
181
149
- uses : actions/checkout@v3
150
+ - uses : dtolnay/rust-toolchain@stable
182
151
- name : " Build"
183
152
run : " cargo rustc --target x86_64-pc-windows-msvc --release --bin interactive-rebase-tool"
184
153
- name : " Upload Release"
185
154
uses : softprops/action-gh-release@v1
186
155
with :
187
- files : target\ x86_64-pc-windows-msvc\ release\ interactive-rebase-tool.exe
156
+ files : target/ x86_64-pc-windows-msvc/ release/ interactive-rebase-tool.exe
188
157
env :
189
158
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments