File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change 7
7
8
8
jobs :
9
9
build :
10
- runs-on : ${{ matrix.os }}
11
- strategy :
12
- matrix :
13
- os : [ubuntu-latest, windows-latest]
10
+ runs-on : ubuntu-latest
14
11
permissions :
15
12
contents : write
16
13
steps :
17
14
- uses : actions/checkout@v3
15
+ - name : Setup
16
+ run : cargo install -f cross
18
17
- name : Build
19
18
run : cargo build --verbose --release
19
+ - name : Build-win
20
+ run : cross build --target x86_64-pc-windows-gnu
20
21
- name : Test
21
22
run : cargo test --verbose --release
22
- - name : release
23
+ - name : Zip
24
+ run : tar -czvf target/gitopolis.tar.gz target/release/*
25
+ - name : Publish
23
26
uses : ncipollo/release-action@v1
24
27
if : startsWith(github.ref, 'refs/tags/v')
25
28
with :
26
- artifacts : " target/release/ gitopolis* "
29
+ artifacts : target/gitopolis.tar.gz
27
30
token : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments