Skip to content

Commit

Permalink
Update gh actions with new plat support
Browse files Browse the repository at this point in the history
  • Loading branch information
idavis committed May 10, 2024
1 parent 1b53f5d commit e625528
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 13 deletions.
3 changes: 3 additions & 0 deletions .github/actions/install-llvm/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ inputs:
os:
description: "The OS being built upon."
required: true
arch:
description: "The OS arch target being built."
required: true
directory:
description: "The directory to install LLVM binaries to."
required: true
Expand Down
4 changes: 4 additions & 0 deletions .github/actions/rust-toolchain/action.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
name: rust-toolchain
description: "Install a Rust toolchain."

inputs:
toolchain:
description: "The toolchain name. Usually a version number."
required: false
components:
description: "Additional components to install."
required: false

runs:
Expand Down
14 changes: 2 additions & 12 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -75,23 +75,13 @@ jobs:
with:
python-version: 3.8
if: ${{ matrix.config.os != 'macos-14' }}
- name: Linux - Install build dependencies, ccache, ninja
run: sudo apt-get install -y ccache ninja-build
if: ${{ matrix.config.os == 'ubuntu-20.04' }}
- name: Windows - Install build dependencies, sccache, ninja
run: choco install --accept-license -y sccache ninja
if: ${{ matrix.config.os == 'windows-2019' }}
- name: MacOS - Install build dependencies, ccache, ninja
run: brew install ccache ninja
if: ${{ matrix.config.os == 'macos-11' }}
- name: MacOS - Install build dependencies, ccache, ninja
run: brew install ccache ninja
if: ${{ matrix.config.os == 'macos-14' }}

- name: Install LLVM
uses: ./.github/actions/install-llvm
with:
version: "14"
os: ${{ matrix.config.os }}
arch: ${{ matrix.config.arch }}
directory: ${{ github.workspace }}/target/llvm
target: ${{ matrix.config.target }}
- name: "Build ${{ matrix.config.target }}"
Expand Down
9 changes: 8 additions & 1 deletion .github/workflows/llvm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ jobs:
arch: "aarch64",
env: {},
}
- {
os: "macos-14",
arch: "universal",
env: {
ARCHFLAGS: "-arch arm64 -arch x86_64"
}
}
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -63,7 +70,7 @@ jobs:
- name: Artifacts
uses: actions/upload-artifact@v4
with:
name: artifacts
name: artifacts-${{ matrix.config.os }}-${{ matrix.config.arch }}
if-no-files-found: error
path: |
target/**/*.zip
Expand Down

0 comments on commit e625528

Please sign in to comment.