This repository has been archived by the owner on Dec 17, 2024. It is now read-only.
forked from rust-av/ssimulacra2_bin
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (41 loc) · 1.4 KB
/
rust.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
44
45
46
47
48
49
name: Rust-release-builds
on:
push:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
WindowsBuild:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install cross from git
run: cargo install cross --git https://github.com/cross-rs/cross
- name: Build
run: |
cross build --target=x86_64-pc-windows-gnu --release
mv /home/runner/work/another_ssimulacra2_cli/another_ssimulacra2_cli/target/x86_64-pc-windows-gnu/release/as2c.exe /home/runner/work/another_ssimulacra2_cli/another_ssimulacra2_cli/as2c.exe
- name: Upload build
uses: actions/upload-artifact@v3.1.0
with:
name: WindowsBuild
path: |
/home/runner/work/another_ssimulacra2_cli/another_ssimulacra2_cli/as2c.exe
if-no-files-found: error
retention-days: 2
LinuxBuild:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: |
cargo build --release
mv /home/runner/work/another_ssimulacra2_cli/another_ssimulacra2_cli/target/release/as2c /home/runner/work/another_ssimulacra2_cli/another_ssimulacra2_cli/as2c
- name: Upload build
uses: actions/upload-artifact@v3.1.0
with:
name: LinuxBuild
path: |
/home/runner/work/another_ssimulacra2_cli/another_ssimulacra2_cli/as2c
if-no-files-found: error
retention-days: 2