Skip to content

Commit efb23cb

Browse files
committed
test
1 parent 4a0042d commit efb23cb

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

.github/workflows/action.yml

+56
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,59 @@ jobs:
3636

3737
- name: Build
3838
run: cargo build --verbose
39+
40+
build:
41+
needs: quick-tests
42+
runs-on: ${{ matrix.os }}
43+
strategy:
44+
fail-fast: false
45+
matrix:
46+
include:
47+
- os: macos-14
48+
TARGET: aarch64-apple-darwin
49+
50+
- os: macos-14
51+
TARGET: x86_64-apple-darwin
52+
53+
- os: ubuntu-22.04
54+
TARGET: aarch64-unknown-linux-musl
55+
56+
- os: ubuntu-22.04
57+
TARGET: armv7-unknown-linux-musleabihf
58+
59+
- os: ubuntu-22.04
60+
TARGET: x86_64-unknown-linux-gnu
61+
62+
- os: windows-2022
63+
TARGET: x86_64-pc-windows-msvc
64+
EXTENSION: .exe
65+
66+
steps:
67+
- name: Building ${{ matrix.TARGET }}
68+
run: echo "${{ matrix.TARGET }}"
69+
70+
- uses: actions/checkout@master
71+
- name: Build
72+
uses: houseabsolute/[email protected]
73+
with:
74+
target: ${{ matrix.TARGET }}
75+
args: "--release"
76+
77+
- name: Rename
78+
run: cp target/${{ matrix.TARGET }}/release/${{ github.event.repository.name }}${{ matrix.EXTENSION }} ${{ github.event.repository.name }}-${{ matrix.TARGET }}${{ matrix.EXTENSION }}
79+
80+
- uses: actions/upload-artifact@master
81+
with:
82+
name: ${{ github.event.repository.name }}-${{ matrix.TARGET }}${{ matrix.EXTENSION }}
83+
path: ${{ github.event.repository.name }}-${{ matrix.TARGET }}${{ matrix.EXTENSION }}
84+
85+
- uses: svenstaro/upload-release-action@v2
86+
name: Upload binaries to release
87+
if: ${{ github.event_name == 'push' }}
88+
with:
89+
repo_token: ${{ secrets.GITHUB_TOKEN }}
90+
file: ${{ github.event.repository.name }}-${{ matrix.TARGET }}${{ matrix.EXTENSION }}
91+
asset_name: ${{ github.event.repository.name }}-${{ matrix.TARGET }}${{ matrix.EXTENSION }}
92+
tag: ${{ github.ref }}
93+
prerelease: ${{ !startsWith(github.ref, 'refs/tags/') }}
94+
overwrite: true

0 commit comments

Comments
 (0)