45 lines
1.2 KiB
YAML
45 lines
1.2 KiB
YAML
|
name: Windows
|
||
|
|
||
|
on: [push, pull_request]
|
||
|
|
||
|
env:
|
||
|
TESTS_REDUCED_KEYLENGTHS: yes
|
||
|
CCACHE_BASEDIR: ${{ github.workspace }}
|
||
|
CCACHE_COMPRESS: true
|
||
|
CCACHE_MAXSIZE: 200M
|
||
|
# since the compilers are newly installed every time, we have to use this to
|
||
|
# avoid cache misses
|
||
|
CCACHE_COMPILERCHECK: content
|
||
|
MONOLITHIC: yes
|
||
|
|
||
|
jobs:
|
||
|
cross-compile:
|
||
|
runs-on: ubuntu-latest
|
||
|
strategy:
|
||
|
matrix:
|
||
|
test: [ win64, win32 ]
|
||
|
env:
|
||
|
OS_NAME: linux
|
||
|
TEST: ${{ matrix.test }}
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
|
- uses: actions/cache@v2
|
||
|
with:
|
||
|
path: ~/.ccache
|
||
|
key: ccache-${{ runner.os }}-${{ matrix.test }}-${{ github.ref }}:${{ github.sha }}
|
||
|
restore-keys: |
|
||
|
ccache-${{ runner.os }}-${{ matrix.test }}-${{ github.ref }}:
|
||
|
ccache-${{ runner.os }}-${{ matrix.test }}-
|
||
|
- run: |
|
||
|
sudo apt-get install -qq ccache
|
||
|
echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
|
||
|
ccache -z
|
||
|
- uses: ./.github/actions/default
|
||
|
- run: ccache -s
|
||
|
- if: ${{ failure() }}
|
||
|
uses: actions/upload-artifact@v2
|
||
|
with:
|
||
|
name: Logs ${{ github.job }}
|
||
|
path: config.log
|
||
|
retention-days: 5
|