-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (40 loc) · 1.48 KB
/
release_windows_aarch64.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Release for Windows aarch64
on:
push:
tags:
- '*'
env:
CARGO_TERM_COLOR: always
jobs:
release_for_windows_aarch64:
name: Release for Windows aarch64
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Compile and calculate checksum
run: |
vcpkg install openssl:arm64-windows-static-md
vcpkg integrate install
rustup update
rustup target add aarch64-pc-windows-msvc
cargo install cargo-auditable cargo-audit
rustc --version
cargo auditable build --release --locked --target=aarch64-pc-windows-msvc
CD .\target\aarch64-pc-windows-msvc\release
dir
MOVE .\hctl.exe .\hctl-windows-aarch64.exe
certutil -hashfile "hctl-windows-aarch64.exe" SHA256 | FINDSTR /vbl "SHA256" | FINDSTR /vbl "CertUtil:" > sha256-hctl-windows-aarch64.exe.txt
- name: Upload binary to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/aarch64-pc-windows-msvc/release/hctl-windows-aarch64.exe
asset_name: hctl-windows-aarch64.exe
tag: ${{ github.ref }}
- name: Upload checksum to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: target/aarch64-pc-windows-msvc/release/sha256-hctl-windows-aarch64.exe.txt
asset_name: sha256-hctl-windows-aarch64.exe.txt
tag: ${{ github.ref }}