-
-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (31 loc) · 948 Bytes
/
tests.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
name: Test project
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1
jobs:
build:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
run: rustup update stable
- name: Set up user environment on macOS
run: |
mkdir -p $HOME/Downloads
mkdir -p $HOME/Desktop
mkdir -p $HOME/Documents
echo "XDG_DOWNLOAD_DIR=$HOME/Downloads" >> $GITHUB_ENV
echo "XDG_DESKTOP_DIR=$HOME/Desktop" >> $GITHUB_ENV
echo "XDG_DOCUMENTS_DIR=$HOME/Documents" >> $GITHUB_ENV
echo "HOME_DIR set to $HOME"
ls -la $HOME # Verify the user directories
- name: Pre-Check the code
run: cargo check --verbose --release --no-default-features
- name: Build test the app
run: cargo build --verbose --release --no-default-features