diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f8b216b..16bbbe8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -68,6 +68,21 @@ jobs: run: | brew update + - name: Set up Python 3.10 + uses: actions/setup-python@v3 + with: + python-version: "3.10" + + - name: Pip setup + run: | + python -m pip install --upgrade pip + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + + - name: Build clang + id: make_build_clang + run: | + make run CC=clang + - name: Build id: make_build run: | @@ -77,16 +92,18 @@ jobs: id: make_build_runfast run: | make runfast + + - name: Test with pytest + run: pytest + + - - name: Build clang - id: make_build_clang - run: | - make run CC=clang windows-latest-make: runs-on: windows-latest strategy: + fail-fast: false #necessary, otherwise the matrix breaks matrix: arch: - amd64 @@ -106,11 +123,30 @@ jobs: with: arch: ${{ matrix.arch }} + - name: Set up Python 3.10 + if: matrix.arch != 'amd64_arm64' + uses: actions/setup-python@v3 + with: + python-version: "3.10" + + - name: Pip setup + if: matrix.arch != 'amd64_arm64' + run: | + python -m pip install --upgrade pip + if (Test-Path requirements.txt) { + pip install -r requirements.txt + } + - name: Build ${{ matrix.arch }} id: build_msvc run: | .\build_msvc.bat + #cross-comiled, cannot be run on host + - name: Test with pytest + if: matrix.arch != 'amd64_arm64' + run: pytest + windows-latest-mingw: runs-on: windows-latest @@ -135,6 +171,26 @@ jobs: install: mingw-w64-${{matrix.env}}-gcc make - name: Build ${{ matrix.sys }} ${{ matrix.env }} - id: build_mingw + id: build_mingw run: | make win64 + + - name: Set up Python 3.10 + uses: actions/setup-python@v3 + with: + python-version: "3.10" + + - name: Pip setup + shell: powershell + run: | + python -m pip install --upgrade pip + if (Test-Path requirements.txt) { + pip install -r requirements.txt + } + + - name: Test with pytest + shell: powershell + run: pytest + + + \ No newline at end of file