Skip to content

Commit

Permalink
Dev: update cache path for toolchain jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
andriydruk committed Sep 17, 2023
1 parent 99390d3 commit 8755757
Showing 1 changed file with 14 additions and 10 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/build-android-toolchain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,16 @@ jobs:
id: cache-swift-arm-64
uses: actions/cache@v2
with:
path: /home/runner/out/swift-android
path: ~/out/swift-android-arm64-v8a.tar
key: ${{ runner.os }}-arm64-${{ hashFiles('.swift.sum') }}
- name: Build Swift
if: steps.cache-swift-arm-64.outputs.cache-hit != 'true'
run: ./build/Linux/031-build-swift-arm64.sh
- name: Clean sources
if: steps.cache-swift-arm-64.outputs.cache-hit != 'true'
run: rm -rf ~/swift-source
- name: Archive toolchain
if: steps.cache-swift-arm-64.outputs.cache-hit != 'true'
run: pushd ~/out; tar -cvf swift-android-arm64-v8a.tar swift-android; popd
- uses: actions/upload-artifact@v2
with:
Expand All @@ -96,14 +98,16 @@ jobs:
id: cache-swift-arm-32
uses: actions/cache@v2
with:
path: /home/runner/out/swift-android
path: ~/out/swift-android-armeabi-v7a.tar
key: ${{ runner.os }}-arm32-${{ hashFiles('.swift.sum') }}
- name: Build Swift
if: steps.cache-swift-arm-32.outputs.cache-hit != 'true'
run: ./build/Linux/032-build-swift-arm.sh
- name: Clean sources
if: steps.cache-swift-arm-32.outputs.cache-hit != 'true'
run: rm -rf ~/swift-source
- name: Archive toolchain
if: steps.cache-swift-arm-32.outputs.cache-hit != 'true'
run: pushd ~/out; tar -cvf swift-android-armeabi-v7a.tar swift-android; popd
- uses: actions/upload-artifact@v2
with:
Expand All @@ -128,14 +132,16 @@ jobs:
id: cache-swift-x86
uses: actions/cache@v2
with:
path: /home/runner/out/swift-android
path: ~/out/swift-android-x86.tar
key: ${{ runner.os }}-x86-${{ hashFiles('.swift.sum') }}
- name: Build Swift
if: steps.cache-swift-x86.outputs.cache-hit != 'true'
run: ./build/Linux/034-build-swift-x86.sh
- name: Clean sources
if: steps.cache-swift-x86.outputs.cache-hit != 'true'
run: rm -rf ~/swift-source
- name: Archive toolchain
if: steps.cache-swift-x86.outputs.cache-hit != 'true'
run: pushd ~/out; tar -cvf swift-android-x86.tar swift-android; popd
- uses: actions/upload-artifact@v2
with:
Expand All @@ -160,14 +166,16 @@ jobs:
id: cache-swift-x86_64
uses: actions/cache@v2
with:
path: /home/runner/out/swift-android
path: ~/out/swift-android-x86_64.tar
key: ${{ runner.os }}-x86_64-${{ hashFiles('.swift.sum') }}
- name: Build Swift
if: steps.cache-swift-x86_64.outputs.cache-hit != 'true'
run: ./build/Linux/033-build-swift-x86_64.sh
- name: Clean sources
if: steps.cache-swift-x86_64.outputs.cache-hit != 'true'
run: rm -rf ~/swift-source
- name: Archive toolchain
if: steps.cache-swift-x86_64.outputs.cache-hit != 'true'
run: pushd ~/out; tar -cvf swift-android-x86_64.tar swift-android; popd
- uses: actions/upload-artifact@v2
with:
Expand Down Expand Up @@ -382,12 +390,7 @@ jobs:
id: cache-swift-mac
uses: actions/cache@v2
with:
path: |
~/swift-source/build/Ninja-ReleaseAssert+stdlib-Release/swift-macosx-x86_64
~/swift-source/build/Ninja-ReleaseAssert+stdlib-Release/llvm-macosx-x86_64
~/swift-source/swiftpm/.build/release/swift-build
/usr/local/bin/pkg-config
/usr/local/bin/ninja
path: ~/swift-android-bin.tar
key: ${{ runner.os }}-x86_64-${{ hashFiles('.swift.sum') }}
- name: Build Swift
if: steps.cache-swift-mac.outputs.cache-hit != 'true'
Expand All @@ -396,6 +399,7 @@ jobs:
if: steps.cache-swift-mac.outputs.cache-hit != 'true'
run: ./build/macOS/030-build-swiftpm.sh
- name: Collect toolchain bin
if: steps.cache-swift-mac.outputs.cache-hit != 'true'
run: ./build/macOS/040-collect-toolchain-bin.sh
- uses: actions/upload-artifact@v2
with:
Expand Down

0 comments on commit 8755757

Please sign in to comment.