Skip to content

Commit 59f359a

Browse files
committed
1 parent 470e388 commit 59f359a

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,24 @@ env:
77

88
jobs:
99
build:
10-
runs-on: ${{ matrix.os }}
11-
strategy:
12-
matrix:
13-
os: [ubuntu-latest, windows-latest]
10+
runs-on: ubuntu-latest
1411
permissions:
1512
contents: write
1613
steps:
1714
- uses: actions/checkout@v3
15+
- name: Setup
16+
run: cargo install -f cross
1817
- name: Build
1918
run: cargo build --verbose --release
19+
- name: Build-win
20+
run: cross build --target x86_64-pc-windows-gnu
2021
- name: Test
2122
run: cargo test --verbose --release
22-
- name: release
23+
- name: Zip
24+
run: tar -czvf target/gitopolis.tar.gz target/release/*
25+
- name: Publish
2326
uses: ncipollo/release-action@v1
2427
if: startsWith(github.ref, 'refs/tags/v')
2528
with:
26-
artifacts: "target/release/gitopolis*"
29+
artifacts: target/gitopolis.tar.gz
2730
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)