-
Notifications
You must be signed in to change notification settings - Fork 0
82 lines (67 loc) · 2.22 KB
/
Copy pathtest.yml
File metadata and controls
82 lines (67 loc) · 2.22 KB
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
name: Test
on:
push:
branches:
- '**'
tags-ignore:
- '**'
env:
CARGO_TERM_COLOR: always
jobs:
ubuntu-test:
runs-on: ubuntu-24.04
defaults:
run:
shell: bash
steps:
- name: Clone repo
uses: actions/checkout@v6
- name: Install dependencies
run: |
sudo apt -y update
sudo apt -y install build-essential kmod curl wget libssl-dev libadwaita-1-dev fuse file libfuse2
- name: Install Rust
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path --profile=minimal
- name: Build project
run: |
PATH="${HOME}/.cargo/bin:${PATH}" cargo build
PATH="${HOME}/.cargo/bin:${PATH}" cargo build --release
- name: Upload debug artifact
uses: actions/upload-artifact@v6
with:
name: ubuntu-debug
path: ${{ github.workspace }}/target/debug/eternal_mod_manager
- name: Upload release artifact
uses: actions/upload-artifact@v6
with:
name: ubuntu-release
path: ${{ github.workspace }}/target/release/eternal_mod_manager
windows-test:
runs-on: windows-latest
defaults:
run:
shell: msys2 {0}
steps:
- uses: actions/checkout@v6
- uses: msys2/setup-msys2@v2
with:
msystem: UCRT64
update: true
install: base-devel mingw-w64-ucrt-x86_64-toolchain mingw-w64-ucrt-x86_64-gtk4 mingw-w64-ucrt-x86_64-libadwaita
- name: Compile
run: |
export PATH=$PATH:`cygpath $USERPROFILE/.cargo/bin`
rustup default stable-x86_64-pc-windows-gnu
cargo build --target=x86_64-pc-windows-gnu --locked
cargo build --target=x86_64-pc-windows-gnu --release --locked
- name: Upload debug artifact
uses: actions/upload-artifact@v6
with:
name: msys-debug
path: ${{ github.workspace }}/target/x86_64-pc-windows-gnu/debug/eternal_mod_manager.exe
- name: Upload release artifact
uses: actions/upload-artifact@v6
with:
name: msys-release
path: ${{ github.workspace }}/target/x86_64-pc-windows-gnu/release/eternal_mod_manager.exe