Skip to content

Commit 7f8790d

Browse files
committed
Update release action
1 parent f66d7ff commit 7f8790d

File tree

2 files changed

+16
-18
lines changed

2 files changed

+16
-18
lines changed

.github/workflows/release.yml

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,37 +3,35 @@ name: Test
33
on:
44
push:
55
tags:
6-
- v*
6+
- v*
77

88
jobs:
9-
build:
10-
name: ${{ matrix.config.name }}
9+
dist:
1110
runs-on: ${{ matrix.config.os }}
1211
strategy:
12+
fail-fast: false
1313
matrix:
1414
config:
15-
- name: ubuntu-build
16-
os: ubuntu-latest
17-
- name: macos-build
18-
os: macos-latest
19-
- name: windows-build
20-
os: windows-latest
15+
- os: ubuntu-latest
16+
target: x86_64-unknown-linux-gnu
17+
# - os: macos-latest
18+
# target: x86_64-apple-darwin
19+
- os: windows-latest
20+
target: x86_64-pc-windows-msvc
2121
steps:
2222
- uses: actions/checkout@v3
2323
- uses: actions-rs/toolchain@v1
2424
with:
25+
profile: minimal
2526
toolchain: stable
2627
- uses: actions-rs/cargo@v1
2728
with:
2829
command: build
29-
args: --release
30-
release:
31-
runs-on: ubuntu-latest
32-
needs: [build]
33-
steps:
30+
args: --release --locked --target ${{ matrix.target }}
31+
- name: Strip release binary (linux and macos)
32+
if: matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
33+
run: strip "target/${{ matrix.target }}/release/eva"
3434
- name: Release
3535
uses: softprops/action-gh-release@v1
3636
with:
37-
files: |
38-
target/release/eva
39-
target/release/eva.exe
37+
files: target/${{ matrix.target }}/release/eva*

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)