mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-23 13:55:36 +08:00
ci: Cache the InstallBuilder installer
This commit is contained in:
committed by
Lars Toenning
parent
52ce97967a
commit
d48c3d2246
32
.github/workflows/build.yml
vendored
32
.github/workflows/build.yml
vendored
@@ -92,9 +92,18 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
version: ${{ env.qt_version }}
|
version: ${{ env.qt_version }}
|
||||||
cache: true
|
cache: true
|
||||||
|
- name: Cache InstallBuilder
|
||||||
|
id: cache-bitrock
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: ~/installbuilder.run
|
||||||
|
key: installbuilder-${{ env.bitrock_version }}-linux-x64
|
||||||
- name: Download InstallBuilder
|
- name: Download InstallBuilder
|
||||||
|
if: steps.cache-bitrock.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
wget --retry-connrefused -t 10 -w 10 -T 60 -O ~/installbuilder.run ${{ env.bitrock_url }}/installbuilder-${{ env.bitrock_version }}-linux-x64-installer.run
|
wget --retry-connrefused -t 10 -w 10 -T 60 -O ~/installbuilder.run ${{ env.bitrock_url }}/installbuilder-${{ env.bitrock_version }}-linux-x64-installer.run
|
||||||
|
- name: Install InstallBuilder
|
||||||
|
run: |
|
||||||
chmod 700 ~/installbuilder.run
|
chmod 700 ~/installbuilder.run
|
||||||
~/installbuilder.run --mode unattended --prefix ~/installbuilder
|
~/installbuilder.run --mode unattended --prefix ~/installbuilder
|
||||||
cat >~/license.xml <<EOF
|
cat >~/license.xml <<EOF
|
||||||
@@ -181,7 +190,14 @@ jobs:
|
|||||||
cache: true
|
cache: true
|
||||||
modules: debug_info
|
modules: debug_info
|
||||||
extra: --archives qtbase
|
extra: --archives qtbase
|
||||||
|
- name: Cache InstallBuilder
|
||||||
|
id: cache-bitrock
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: C:\installbuilder.exe
|
||||||
|
key: installbuilder-${{ env.bitrock_version }}-windows-x64
|
||||||
- name: Download InstallBuilder
|
- name: Download InstallBuilder
|
||||||
|
if: steps.cache-bitrock.outputs.cache-hit != 'true'
|
||||||
shell: C:\msys64\usr\bin\bash.exe -le {0}
|
shell: C:\msys64\usr\bin\bash.exe -le {0}
|
||||||
run: |
|
run: |
|
||||||
wget --retry-connrefused -t 10 -w 10 -T 60 -O /c/installbuilder.exe ${{ env.bitrock_url }}/installbuilder-${{ env.bitrock_version }}-windows-x64-installer.exe
|
wget --retry-connrefused -t 10 -w 10 -T 60 -O /c/installbuilder.exe ${{ env.bitrock_url }}/installbuilder-${{ env.bitrock_version }}-windows-x64-installer.exe
|
||||||
@@ -269,7 +285,14 @@ jobs:
|
|||||||
cache: true
|
cache: true
|
||||||
modules: debug_info
|
modules: debug_info
|
||||||
extra: --archives qtbase
|
extra: --archives qtbase
|
||||||
|
- name: Cache InstallBuilder
|
||||||
|
id: cache-bitrock
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: C:\installbuilder.exe
|
||||||
|
key: installbuilder-${{ env.bitrock_version }}-windows
|
||||||
- name: Download InstallBuilder
|
- name: Download InstallBuilder
|
||||||
|
if: steps.cache-bitrock.outputs.cache-hit != 'true'
|
||||||
shell: C:\msys64\usr\bin\bash.exe -le {0}
|
shell: C:\msys64\usr\bin\bash.exe -le {0}
|
||||||
run: |
|
run: |
|
||||||
wget --retry-connrefused -t 10 -w 10 -T 60 -O /c/installbuilder.exe ${{ env.bitrock_url }}/installbuilder-${{ env.bitrock_version }}-windows-installer.exe
|
wget --retry-connrefused -t 10 -w 10 -T 60 -O /c/installbuilder.exe ${{ env.bitrock_url }}/installbuilder-${{ env.bitrock_version }}-windows-installer.exe
|
||||||
@@ -343,9 +366,18 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
version: ${{ env.qt_version }}
|
version: ${{ env.qt_version }}
|
||||||
cache: true
|
cache: true
|
||||||
|
- name: Cache InstallBuilder
|
||||||
|
id: cache-bitrock
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: ~/installbuilder.dmg
|
||||||
|
key: installbuilder-${{ env.bitrock_version }}-osx
|
||||||
- name: Download InstallBuilder
|
- name: Download InstallBuilder
|
||||||
|
if: steps.cache-bitrock.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
wget --retry-connrefused -t 10 -w 10 -T 60 -O $HOME/installbuilder.dmg ${{ env.bitrock_url }}/installbuilder-${{ env.bitrock_version }}-osx-installer.dmg
|
wget --retry-connrefused -t 10 -w 10 -T 60 -O $HOME/installbuilder.dmg ${{ env.bitrock_url }}/installbuilder-${{ env.bitrock_version }}-osx-installer.dmg
|
||||||
|
- name: Install InstallBuilder
|
||||||
|
run: |
|
||||||
chmod 700 $HOME/installbuilder.dmg
|
chmod 700 $HOME/installbuilder.dmg
|
||||||
sudo hdiutil attach $HOME/installbuilder.dmg
|
sudo hdiutil attach $HOME/installbuilder.dmg
|
||||||
sudo cp -rf "/Volumes/InstallBuilder Qt/installbuilder-${{ env.bitrock_version }}-osx-installer.app" /Applications
|
sudo cp -rf "/Volumes/InstallBuilder Qt/installbuilder-${{ env.bitrock_version }}-osx-installer.app" /Applications
|
||||||
|
|||||||
Reference in New Issue
Block a user