Skip to content

Commit

Permalink
ci: do not cache boost source tarball
Browse files Browse the repository at this point in the history
  • Loading branch information
lotem committed Mar 8, 2024
1 parent a767f9a commit 93ed3fa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 40 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/macos-build.yml
Expand Up @@ -42,26 +42,7 @@ jobs:
run: |
echo BUILD_UNIVERSAL=1 >> $GITHUB_ENV
- name: Cache Boost
id: cache-boost
uses: actions/cache@v4
with:
path: |
${{ env.BOOST_ROOT }}.tar.xz
key: ${{ matrix.os }}-boost-${{ env.boost_version }}

- name: Extract Boost source tarball
if: steps.cache-boost.outputs.cache-hit == 'true'
run: |
pushd deps
tar -xJf ${{ env.BOOST_ROOT }}.tar.xz
cd ${{ env.BOOST_ROOT }}
./bootstrap.sh
./b2 headers
popd
- name: Install Boost
if: steps.cache-boost.outputs.cache-hit != 'true'
run: ./install-boost.sh

- name: Check submodules
Expand Down
24 changes: 3 additions & 21 deletions .github/workflows/windows-build.yml
Expand Up @@ -9,6 +9,7 @@ on:
rime_plugins:
required: false
type: string

jobs:
build:
runs-on: windows-latest
Expand Down Expand Up @@ -64,27 +65,8 @@ jobs:
echo "git_ref_name=$git_ref_name" >> $env:GITHUB_ENV
git submodule > submodule-status
- name: Cache Boost source
id: cache-boost-src
uses: actions/cache@v4
with:
path: |
${{ env.BOOST_ROOT }}.7z
key: ${{ runner.os }}-boost-${{ env.boost_version }}-src

- name: Download Boost source
if: steps.cache-boost-src.outputs.cache-hit != 'true'
run: |
aria2c https://github.com/boostorg/boost/releases/download/boost-${{ env.boost_version }}/boost-${{ env.boost_version }}.7z -d deps
- name: Extract Boost source tarball
run: |
pushd deps
7z x ${{ env.BOOST_ROOT }}.7z
cd ${{ env.BOOST_ROOT }}
.\bootstrap.bat
.\b2 headers
popd
- name: Install boost
run: .\install-boost.bat

- name: Cache dependencies
id: cache-deps
Expand Down

0 comments on commit 93ed3fa

Please sign in to comment.