Skip to content

Commit

Permalink
Update touchHLE_release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ciciplusplus authored Nov 14, 2024
1 parent 052c94e commit 51388f8
Showing 1 changed file with 46 additions and 46 deletions.
92 changes: 46 additions & 46 deletions .github/workflows/touchHLE_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,54 +10,54 @@ env:
CARGO_TERM_COLOR: always

jobs:
build-osx:
build-osx:

# TODO: Use macos-latest once AArch64 cross-compile for x86_64 works
runs-on: macos-13
# 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: Build debug
run: cargo build
- name: Test
run: cargo test
- name: Build
run: cargo build --release && mv target/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
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: Build dev
run: cargo build
- name: Test
run: cargo test
- name: Build
run: cargo build --release && mv target/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

build-android:

Expand Down

0 comments on commit 51388f8

Please sign in to comment.