|
|
@@ -137,7 +137,7 @@ jobs:
|
|
|
if: ${{ github.repository_owner == 'hyperledger-labs' }}
|
|
|
steps:
|
|
|
- name: Checkout sources
|
|
|
- uses: actions/checkout@v2
|
|
|
+ uses: actions/checkout@v3
|
|
|
- run: git clone --depth 1 --branch solana-rustc/13.0-2021-08-08 https://github.com/solana-labs/llvm-project.git
|
|
|
- name: Install Ninja
|
|
|
uses: llvm/actions/install-ninja@main
|
|
|
@@ -150,6 +150,8 @@ jobs:
|
|
|
- run: cmake --build . --target install
|
|
|
working-directory: ./llvm-project/
|
|
|
- run: tar Jcf ./llvm13.0-mac-arm.tar.xz ./llvm13.0/
|
|
|
+ - name: Cache LLVM
|
|
|
+ run: ${{ github.workspace }}/.github/workflows/llvm-cache.sh llvm13.0-mac-arm.tar.xz
|
|
|
- name: Upload llvm
|
|
|
uses: svenstaro/upload-release-action@v2
|
|
|
with:
|
|
|
@@ -179,7 +181,7 @@ jobs:
|
|
|
runs-on: macos-11
|
|
|
steps:
|
|
|
- name: Checkout sources
|
|
|
- uses: actions/checkout@v2
|
|
|
+ uses: actions/checkout@v3
|
|
|
- run: git clone --depth 1 --branch solana-rustc/13.0-2021-08-08 https://github.com/solana-labs/llvm-project.git
|
|
|
- name: Install Ninja
|
|
|
uses: llvm/actions/install-ninja@main
|
|
|
@@ -192,6 +194,8 @@ jobs:
|
|
|
- run: cmake --build . --target install
|
|
|
working-directory: ./llvm-project/
|
|
|
- run: tar Jcf ./llvm13.0-mac-intel.tar.xz ./llvm13.0/
|
|
|
+ - name: Cache LLVM
|
|
|
+ run: ${{ github.workspace }}/.github/workflows/llvm-cache.sh llvm13.0-mac-intel.tar.xz
|
|
|
- name: Upload llvm
|
|
|
uses: svenstaro/upload-release-action@v2
|
|
|
with:
|
|
|
@@ -230,10 +234,11 @@ jobs:
|
|
|
container-multiarch:
|
|
|
name: Multiarch Container Image
|
|
|
runs-on: macos-arm
|
|
|
+ needs: [mac-arm, mac-intel]
|
|
|
if: ${{ github.repository_owner == 'hyperledger-labs' }}
|
|
|
steps:
|
|
|
- name: Checkout sources
|
|
|
- uses: actions/checkout@v2
|
|
|
+ uses: actions/checkout@v3
|
|
|
- run: |
|
|
|
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
|
|
|
docker buildx build . --push \
|