diff --git a/.github/workflows/linux-build.yml b/.github/workflows/linux-build.yml index 7e98b088b..445f9defb 100644 --- a/.github/workflows/linux-build.yml +++ b/.github/workflows/linux-build.yml @@ -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 diff --git a/.github/workflows/macos-build.yml b/.github/workflows/macos-build.yml index 7aa07659b..97fa56f6b 100644 --- a/.github/workflows/macos-build.yml +++ b/.github/workflows/macos-build.yml @@ -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 diff --git a/.github/workflows/msys2-build.yml b/.github/workflows/msys2-build.yml index 077356c12..1e7fd7db9 100644 --- a/.github/workflows/msys2-build.yml +++ b/.github/workflows/msys2-build.yml @@ -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 diff --git a/.github/workflows/wasm-build.yml b/.github/workflows/wasm-build.yml index 642168eac..5149b84e8 100644 --- a/.github/workflows/wasm-build.yml +++ b/.github/workflows/wasm-build.yml @@ -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 diff --git a/.github/workflows/windows-build.yml b/.github/workflows/windows-build.yml index 93c687080..b7f04ba71 100644 --- a/.github/workflows/windows-build.yml +++ b/.github/workflows/windows-build.yml @@ -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