Skip to content

Commit 8ef72ad

Browse files
author
Thomas Forbes
committed
Add an explicit target
1 parent 41ba214 commit 8ef72ad

File tree

2 files changed

+14
-40
lines changed

2 files changed

+14
-40
lines changed

.github/workflows/release.yaml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,16 @@ jobs:
55
build-release:
66
strategy:
77
matrix:
8-
platform: [ubuntu-latest, windows-latest, macos-latest]
8+
include:
9+
- os: ubuntu-latest
10+
bin: esdump-rs
11+
target: x86_64-unknown-linux-gnu
12+
- os: macOS-latest
13+
bin: esdump-rs
14+
target: aarch64-apple-darwin
15+
- os: windows-latest
16+
bin: esdump-rs.exe
17+
target: x86_64-pc-windows-msvc
918
name: cargo build
1019
runs-on: ${{ matrix.platform }}
1120
steps:
@@ -14,10 +23,12 @@ jobs:
1423
- uses: Swatinem/rust-cache@v2
1524
with:
1625
key: "release-lto"
17-
- run: cargo build --profile=release-lto
26+
- run: cargo build --target=${{ matrix.target }} --profile=release-lto
27+
- run: mkdir ${{ matrix.target }}
28+
- run: cp target/${{ matrix.target }}/release-lto/${{ matrix.bin }} ${{ matrix.target }}/${{ matrix.bin }}
1829
- name: Upload build artifacts
1930
uses: actions/upload-artifact@v4
2031
with:
2132
name: ${{ matrix.platform }}
22-
path: target/release-lto/esdump-rs*
33+
path: ${{ matrix.target }}
2334
retention-days: 1

.github/workflows/test.yaml

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)