CI: Add static job
This commit is contained in:
parent
91c9706016
commit
59e172c2ee
|
|
@ -23,6 +23,7 @@ jobs:
|
|||
matrix:
|
||||
os: [ubuntu-latest]
|
||||
arch: [x86_64]
|
||||
kind: [shared, static]
|
||||
confs:
|
||||
- { mode: debug, archive: yes }
|
||||
- { mode: debug, config: --asan=y, archive: false }
|
||||
|
|
@ -77,7 +78,7 @@ jobs:
|
|||
|
||||
# Setup compilation mode and install project dependencies
|
||||
- name: Configure xmake and install dependencies
|
||||
run: xmake config --arch=${{ matrix.arch }} --mode=${{ matrix.confs.mode }} ${{ matrix.confs.config }} --ccache=n --ffmpeg=y --shadernodes=y --tests=y --unitybuild=y --yes
|
||||
run: xmake config --arch=${{ matrix.arch }} --mode=${{ matrix.confs.mode }} --static=${{ matrix.kind == 'static' && 'yes' || 'no' }} ${{ matrix.confs.config }} --ccache=n --ffmpeg=y --shadernodes=y --tests=y --unitybuild=y --yes
|
||||
|
||||
# Save dependencies
|
||||
- name: Save cached xmake dependencies
|
||||
|
|
@ -114,7 +115,7 @@ jobs:
|
|||
# Setup installation configuration
|
||||
- name: Configure xmake for installation
|
||||
if: ${{ (github.ref == 'refs/heads/main') && github.event_name == 'push' && matrix.confs.archive }}
|
||||
run: xmake config --arch=${{ matrix.arch }} --mode=${{ matrix.confs.mode }} ${{ matrix.confs.config }} --ccache=n --ffmpeg=n --shadernodes=y --tests=y --yes
|
||||
run: xmake config --arch=${{ matrix.arch }} --mode=${{ matrix.confs.mode }} --static=${{ matrix.kind == 'static' && 'yes' || 'no' }} ${{ matrix.confs.config }} --ccache=n --ffmpeg=n --shadernodes=y --tests=y --yes
|
||||
|
||||
# Install the result files
|
||||
- name: Install Nazara
|
||||
|
|
@ -123,7 +124,7 @@ jobs:
|
|||
|
||||
- name: "Set PACKAGE_NAME variable"
|
||||
if: ${{ (github.ref == 'refs/heads/main') && github.event_name == 'push' && matrix.confs.archive }}
|
||||
run: echo "PACKAGE_NAME=Linux_${{ matrix.arch }}_${{ matrix.confs.mode }}.tar.gz" >> $GITHUB_ENV
|
||||
run: echo "PACKAGE_NAME=linux_${{ matrix.arch }}_${{ matrix.confs.mode }}_${{ matrix.kind }}.tar.gz" >> $GITHUB_ENV
|
||||
shell: bash
|
||||
|
||||
- name: Archive result
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ jobs:
|
|||
matrix:
|
||||
os: [macOS-latest]
|
||||
arch: [x86_64]
|
||||
kind: [shared, static]
|
||||
confs:
|
||||
- { mode: debug, archive: yes }
|
||||
- { mode: debug, config: --asan=y, archive: false }
|
||||
|
|
@ -71,7 +72,7 @@ jobs:
|
|||
|
||||
# Setup compilation mode and install project dependencies
|
||||
- name: Configure xmake and install dependencies
|
||||
run: xmake config --arch=${{ matrix.arch }} --mode=${{ matrix.confs.mode }} ${{ matrix.confs.config }} --ccache=n --ffmpeg=y --shadernodes=y --tests=y --unitybuild=y --yes -vD
|
||||
run: xmake config --arch=${{ matrix.arch }} --mode=${{ matrix.confs.mode }} --static=${{ matrix.kind == 'static' && 'yes' || 'no' }} ${{ matrix.confs.config }} --ccache=n --ffmpeg=y --shadernodes=y --tests=y --unitybuild=y --yes -vD
|
||||
|
||||
# Save dependencies
|
||||
- name: Save cached xmake dependencies
|
||||
|
|
@ -108,7 +109,7 @@ jobs:
|
|||
# Setup installation configuration
|
||||
- name: Configure xmake for installation
|
||||
if: ${{ (github.ref == 'refs/heads/main') && github.event_name == 'push' && matrix.confs.archive }}
|
||||
run: xmake config --arch=${{ matrix.arch }} --mode=${{ matrix.confs.mode }} ${{ matrix.confs.config }} --ccache=n --ffmpeg=n --shadernodes=y --tests=y --yes
|
||||
run: xmake config --arch=${{ matrix.arch }} --mode=${{ matrix.confs.mode }} --static=${{ matrix.kind == 'static' && 'yes' || 'no' }} ${{ matrix.confs.config }} --ccache=n --ffmpeg=n --shadernodes=y --tests=y --yes
|
||||
|
||||
# Install the result files
|
||||
- name: Install Nazara
|
||||
|
|
@ -117,7 +118,7 @@ jobs:
|
|||
|
||||
- name: "Set PACKAGE_NAME variable"
|
||||
if: ${{ (github.ref == 'refs/heads/main') && github.event_name == 'push' && matrix.confs.archive }}
|
||||
run: echo "PACKAGE_NAME=macOS_${{ matrix.arch }}_${{ matrix.confs.mode }}.tar.gz" >> $GITHUB_ENV
|
||||
run: echo "PACKAGE_NAME=macOS_${{ matrix.arch }}_${{ matrix.confs.mode }}_${{ matrix.kind }}.tar.gz" >> $GITHUB_ENV
|
||||
shell: bash
|
||||
|
||||
- name: Archive result
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ jobs:
|
|||
os: [windows-latest]
|
||||
arch: [x86_64]
|
||||
mode: [debug, releasedbg]
|
||||
kind: [shared, static]
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
if: ${{ !contains(github.event.head_commit.message, 'ci skip') }}
|
||||
|
|
@ -71,7 +72,7 @@ jobs:
|
|||
|
||||
# Setup compilation mode and install project dependencies
|
||||
- name: Configure xmake and install dependencies
|
||||
run: xmake config --arch=${{ matrix.arch }} --mode=${{ matrix.mode }} --ccache=n --ffmpeg=y --shadernodes=y --tests=y --unitybuild=y --yes
|
||||
run: xmake config --arch=${{ matrix.arch }} --mode=${{ matrix.mode }} --static=${{ matrix.kind == 'static' && 'yes' || 'no' }} --ccache=n --ffmpeg=y --shadernodes=y --tests=y --unitybuild=y --yes
|
||||
|
||||
# Save dependencies
|
||||
- name: Save cached xmake dependencies
|
||||
|
|
@ -108,7 +109,7 @@ jobs:
|
|||
# Setup installation configuration
|
||||
- name: Configure xmake for installation
|
||||
if: ${{ (github.ref == 'refs/heads/main') && github.event_name == 'push' }}
|
||||
run: xmake config --arch=${{ matrix.arch }} --mode=${{ matrix.mode }} --ccache=n --ffmpeg=n --shadernodes=y --tests=y --yes
|
||||
run: xmake config --arch=${{ matrix.arch }} --mode=${{ matrix.mode }} --static=${{ matrix.kind == 'static' && 'yes' || 'no' }} --ccache=n --ffmpeg=n --shadernodes=y --tests=y --yes
|
||||
|
||||
# Install the result files
|
||||
- name: Install Nazara
|
||||
|
|
@ -117,7 +118,7 @@ jobs:
|
|||
|
||||
- name: "Set PACKAGE_NAME variable"
|
||||
if: ${{ (github.ref == 'refs/heads/main') && github.event_name == 'push' }}
|
||||
run: echo "PACKAGE_NAME=${{ matrix.msystem }}_${{ matrix.arch }}_${{ matrix.mode }}.zip" >> $GITHUB_ENV
|
||||
run: echo "PACKAGE_NAME=${{ matrix.msystem }}_${{ matrix.arch }}_${{ matrix.kind }}_${{ matrix.mode }}.zip" >> $GITHUB_ENV
|
||||
shell: bash
|
||||
|
||||
- name: Archive result
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@ jobs:
|
|||
|
||||
- name: "Set PACKAGE_NAME variable"
|
||||
if: ${{ (github.ref == 'refs/heads/main') && github.event_name == 'push' }}
|
||||
run: echo "PACKAGE_NAME=Web_${{ matrix.arch }}_${{ matrix.mode }}.tar.gz" >> $GITHUB_ENV
|
||||
run: echo "PACKAGE_NAME=emscripten_${{ matrix.arch }}_${{ matrix.mode }}_static.tar.gz" >> $GITHUB_ENV
|
||||
shell: bash
|
||||
|
||||
- name: Archive result
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ jobs:
|
|||
os: [windows-latest]
|
||||
arch: [x64]
|
||||
mode: [debug, releasedbg]
|
||||
kind: [shared, static]
|
||||
|
||||
runs-on: ${{ matrix.os }}
|
||||
if: ${{ !contains(github.event.head_commit.message, 'ci skip') }}
|
||||
|
|
@ -66,7 +67,7 @@ jobs:
|
|||
|
||||
# Setup compilation mode and install project dependencies
|
||||
- name: Configure xmake and install dependencies
|
||||
run: xmake config --arch=${{ matrix.arch }} --mode=${{ matrix.mode }} --ccache=n --ffmpeg=y --shadernodes=y --tests=y --unitybuild=y --yes
|
||||
run: xmake config --arch=${{ matrix.arch }} --mode=${{ matrix.mode }} --static=${{ matrix.kind == 'static' && 'yes' || 'no' }} --ccache=n --ffmpeg=y --shadernodes=y --tests=y --unitybuild=y --yes
|
||||
|
||||
# Save dependencies
|
||||
- name: Save cached xmake dependencies
|
||||
|
|
@ -102,7 +103,7 @@ jobs:
|
|||
|
||||
# Setup installation configuration
|
||||
- name: Configure xmake for installation
|
||||
run: xmake config --arch=${{ matrix.arch }} --mode=${{ matrix.mode }} --ccache=n --ffmpeg=n --shadernodes=y --tests=y --yes
|
||||
run: xmake config --arch=${{ matrix.arch }} --mode=${{ matrix.mode }} --static=${{ matrix.kind == 'static' && 'yes' || 'no' }} --ccache=n --ffmpeg=n --shadernodes=y --tests=y --yes
|
||||
|
||||
# Install the result files
|
||||
- name: Install Nazara
|
||||
|
|
@ -111,7 +112,7 @@ jobs:
|
|||
|
||||
- name: "Set PACKAGE_NAME variable"
|
||||
if: ${{ (github.ref == 'refs/heads/main') && github.event_name == 'push' }}
|
||||
run: echo "PACKAGE_NAME=Windows_${{ matrix.arch }}_${{ matrix.mode }}.zip" >> $GITHUB_ENV
|
||||
run: echo "PACKAGE_NAME=windows_${{ matrix.arch }}_${{ matrix.mode }}_${{ matrix.kind }}.zip" >> $GITHUB_ENV
|
||||
shell: bash
|
||||
|
||||
- name: Archive result
|
||||
|
|
|
|||
Loading…
Reference in New Issue