mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-03 03:53:56 -07:00
reorder
[ 0 ] Get source [ 1 ] Install dependencies [ 2 ] Setup and prepare compilation [ 3 ] Build [ 4 ] Cleanup [ 5 ] Deploy
This commit is contained in:
parent
18b2b2c761
commit
56a64d2ddd
1 changed files with 22 additions and 22 deletions
44
.github/workflows/desktop-build.yml
vendored
44
.github/workflows/desktop-build.yml
vendored
|
|
@ -347,28 +347,10 @@ jobs:
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
|
|
||||||
- name: "[Windows] Add msbuild to PATH"
|
- name: "[macOS] Install ccache"
|
||||||
if: matrix.os == 'Windows'
|
|
||||||
id: add-msbuild
|
|
||||||
uses: microsoft/setup-msbuild@v3
|
|
||||||
with:
|
|
||||||
msbuild-architecture: x64
|
|
||||||
|
|
||||||
- name: "[macOS] Setup ccache"
|
|
||||||
if: matrix.os == 'macOS' && matrix.use_ccache == true
|
if: matrix.os == 'macOS' && matrix.use_ccache == true
|
||||||
run: brew install ccache
|
run: brew install ccache
|
||||||
|
|
||||||
- name: "[macOS] Restore compiler cache (ccache)"
|
|
||||||
if: matrix.os == 'macOS' && matrix.use_ccache == true
|
|
||||||
id: ccache_restore
|
|
||||||
uses: actions/cache/restore@v6
|
|
||||||
env:
|
|
||||||
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
|
|
||||||
with:
|
|
||||||
key: ccache-${{ matrix.runner }}-${{ matrix.soc }}-${{ matrix.type }}-${{ env.BRANCH_NAME }}
|
|
||||||
path: ${{ env.CCACHE_DIR }}
|
|
||||||
restore-keys: ccache-${{ matrix.runner }}-${{ matrix.soc }}-${{ matrix.type }}-
|
|
||||||
|
|
||||||
- name: "Install aqtinstall"
|
- name: "Install aqtinstall"
|
||||||
run: pipx install aqtinstall
|
run: pipx install aqtinstall
|
||||||
|
|
||||||
|
|
@ -411,6 +393,11 @@ jobs:
|
||||||
key: thin-qt-macos-${{ matrix.soc }}-${{ steps.resolve_qt_version.outputs.version }}
|
key: thin-qt-macos-${{ matrix.soc }}-${{ steps.resolve_qt_version.outputs.version }}
|
||||||
path: ${{ github.workspace }}/Qt
|
path: ${{ github.workspace }}/Qt
|
||||||
|
|
||||||
|
- name: "[Windows] Install NSIS"
|
||||||
|
if: matrix.os == 'Windows'
|
||||||
|
shell: bash
|
||||||
|
run: choco install nsis
|
||||||
|
|
||||||
- name: "[Windows] Install Qt ${{ matrix.qt_version }}"
|
- name: "[Windows] Install Qt ${{ matrix.qt_version }}"
|
||||||
if: matrix.os == 'Windows'
|
if: matrix.os == 'Windows'
|
||||||
uses: jurplel/install-qt-action@v4
|
uses: jurplel/install-qt-action@v4
|
||||||
|
|
@ -422,10 +409,12 @@ jobs:
|
||||||
modules: ${{ matrix.qt_modules }}
|
modules: ${{ matrix.qt_modules }}
|
||||||
version: ${{ steps.resolve_qt_version.outputs.version }}
|
version: ${{ steps.resolve_qt_version.outputs.version }}
|
||||||
|
|
||||||
- name: "[Windows] Install NSIS"
|
- name: "[Windows] Setup MSBuild"
|
||||||
if: matrix.os == 'Windows'
|
if: matrix.os == 'Windows'
|
||||||
shell: bash
|
id: add-msbuild
|
||||||
run: choco install nsis
|
uses: microsoft/setup-msbuild@v3
|
||||||
|
with:
|
||||||
|
msbuild-architecture: x64
|
||||||
|
|
||||||
- name: "Setup vcpkg cache"
|
- name: "Setup vcpkg cache"
|
||||||
id: vcpkg-cache
|
id: vcpkg-cache
|
||||||
|
|
@ -433,6 +422,17 @@ jobs:
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.GITHUB_TOKEN }}
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- name: "[macOS] Restore compiler cache (ccache)"
|
||||||
|
if: matrix.os == 'macOS' && matrix.use_ccache == true
|
||||||
|
id: ccache_restore
|
||||||
|
uses: actions/cache/restore@v6
|
||||||
|
env:
|
||||||
|
BRANCH_NAME: ${{ github.head_ref || github.ref_name }}
|
||||||
|
with:
|
||||||
|
key: ccache-${{ matrix.runner }}-${{ matrix.soc }}-${{ matrix.type }}-${{ env.BRANCH_NAME }}
|
||||||
|
path: ${{ env.CCACHE_DIR }}
|
||||||
|
restore-keys: ccache-${{ matrix.runner }}-${{ matrix.soc }}-${{ matrix.type }}-
|
||||||
|
|
||||||
# Uses environment variables, see compile.sh for more details
|
# Uses environment variables, see compile.sh for more details
|
||||||
- name: "Build Cockatrice"
|
- name: "Build Cockatrice"
|
||||||
id: build
|
id: build
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue