forked from touchHLE/touchHLE
-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (55 loc) · 1.96 KB
/
touchHLE_release.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
50
51
52
53
54
55
56
57
58
59
60
name: Build touchHLE
on:
push:
branches: [ "trunk" ]
pull_request:
branches: [ "trunk" ]
env:
CARGO_TERM_COLOR: always
jobs:
build-osx:
# TODO: Use macos-latest once AArch64 cross-compile for x86_64 works
runs-on: macos-13
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # touchHLE's git-describe versioning needs tag history
- name: Install clang-format
run: brew install clang-format
- name: Check formatting
run: dev-scripts/format.sh --check
- name: Get Submodules
run: git submodule update --init
- name: Install Boost
run: brew install boost
# This is the earliest point at which we can do linting: clippy will end up
# building dynarmic, which needs Boost, but we don't need LLVM until
# building tests.
- name: Lint
run: dev-scripts/lint.sh
- name: Try to get cached copy of LLVM
id: cache-llvm
uses: actions/cache@v3
with:
path: tests/llvm
key: llvm_12_0_0_macOS_x64
- if: ${{ steps.cache-llvm.outputs.cache-hit != 'true' }}
name: Download LLVM
run: curl -L -O "https://github.com/llvm/llvm-project/releases/download/llvmorg-12.0.0/clang+llvm-12.0.0-x86_64-apple-darwin.tar.xz"
- if: ${{ steps.cache-llvm.outputs.cache-hit != 'true' }}
name: Extract LLVM
run: tar -xf clang+llvm-12.0.0-x86_64-apple-darwin.tar.xz && mkdir tests/llvm && mv clang+llvm-12.0.0-x86_64-apple-darwin/* tests/llvm
- name: Install x86_64 toolchain
run: rustup target add x86_64-apple-darwin
- name: Test
run: cargo test --target x86_64-apple-darwin
- name: Build
run: cargo build --target x86_64-apple-darwin --release && mv target/x86_64-apple-darwin/release/touchHLE .
- uses: actions/upload-artifact@v3
with:
name: touchHLE_macOS_x86_64
path: touchHLE
- uses: actions/upload-artifact@v3
with:
name: TestApp_built_on_macOS
path: tests/TestApp.app