Skip to content

Commit

Permalink
Merge aarch64.yml to Build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Feb 21, 2024
1 parent 1db6245 commit 1d41b04
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 92 deletions.
26 changes: 17 additions & 9 deletions .github/workflows/Build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,25 @@ on:
branches:
- 'build/*'
tags: [ 'v*' ]
pull_request:
types: [ opened, synchronize, reopened, labeled ]
workflow_dispatch:

name: Build x86_64
name: Build ${{ matrix.os.arch }}

jobs:
build:
name: Build
runs-on: macos-11
if: ${{ github.event_name != 'pull_request' || contains(github.event.pull_request.labels.*.name, 'CI-build') }}
runs-on: ${{ matrix.os.name }}
strategy:
fail-fast: false
matrix:
os:
- name: macos-11
arch: x86_64
- name: macos-14
arch: aarch64
target:
- x86_64-unknown-linux-gnu
- x86_64-unknown-linux-musl
Expand Down Expand Up @@ -56,21 +64,21 @@ jobs:
run: |
set -ex
cd /Volumes/tools
tar czf ${{ matrix.target }}-x86_64-darwin.tar.gz ${{ matrix.target }}
tar czf ${{ matrix.target }}-${{ matrix.os.arch }}-darwin.tar.gz ${{ matrix.target }}
cd -
mv /Volumes/tools/${{ matrix.target }}-x86_64-darwin.tar.gz .
sha256sum ${{ matrix.target }}-x86_64-darwin.tar.gz | tee ${{ matrix.target }}-x86_64-darwin.tar.gz.sha256
mv /Volumes/tools/${{ matrix.target }}-${{ matrix.os.arch }}-darwin.tar.gz .
sha256sum ${{ matrix.target }}-${{ matrix.os.arch }}-darwin.tar.gz | tee ${{ matrix.target }}-${{ matrix.os.arch }}-darwin.tar.gz.sha256
- name: Upload Toolchain
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: toolchains
path: ${{ matrix.target }}-x86_64-darwin.tar.gz
name: toolchain-${{ matrix.target }}-${{ matrix.os.arch }}-darwin
path: ${{ matrix.target }}-${{ matrix.os.arch }}-darwin.tar.gz
if-no-files-found: error
- name: Upload Toolchain to GitHub Release
uses: svenstaro/upload-release-action@v2
if: "startsWith(github.ref, 'refs/tags/')"
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ matrix.target }}-x86_64-darwin.tar.gz*
file: ${{ matrix.target }}-${{ matrix.os.arch }}-darwin.tar.gz*
file_glob: true
tag: ${{ github.ref }}
83 changes: 0 additions & 83 deletions .github/workflows/aarch64.yml

This file was deleted.

0 comments on commit 1d41b04

Please sign in to comment.