Skip to content

Commit

Permalink
Simplify releases workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
TheYoBots authored and ianfab committed Feb 15, 2022
1 parent 06eb236 commit 8376d2a
Showing 1 changed file with 15 additions and 36 deletions.
51 changes: 15 additions & 36 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,60 +8,39 @@ on:

jobs:
windows:
runs-on: ubuntu-20.04
strategy:
matrix:
arch: ["x86-64-bmi2", "x86-64-modern", "x86-64"]
runs-on: windows-2022

steps:
- uses: actions/checkout@v2

- name: install
run: sudo apt install mingw-w64

- name: make x86-64
run: cd src && make clean && make -j build COMP=mingw ARCH=x86-64 EXE=fairy-stockfish_x86-64.exe && strip fairy-stockfish_x86-64.exe

- name: make x86-64-modern
run: cd src && make clean && make -j build COMP=mingw ARCH=x86-64-modern EXE=fairy-stockfish_x86-64-modern.exe && strip fairy-stockfish_x86-64-modern.exe

- name: make x86-64-bmi2
run: cd src && make clean && make -j build COMP=mingw ARCH=x86-64-bmi2 EXE=fairy-stockfish_x86-64-bmi2.exe && strip fairy-stockfish_x86-64-bmi2.exe

- name: make largeboards x86-64
run: cd src && make clean && make -j build COMP=mingw ARCH=x86-64 EXE=fairy-stockfish-largeboards_x86-64.exe largeboards=yes && strip fairy-stockfish-largeboards_x86-64.exe
- name: make
run: cd src && make clean && make -j build COMP=mingw ARCH=${{ matrix.arch }} EXE=fairy-stockfish_${{ matrix.arch }}.exe && strip fairy-stockfish_${{ matrix.arch }}.exe

- name: make largeboards x86-64-modern
run: cd src && make clean && make -j build COMP=mingw ARCH=x86-64-modern EXE=fairy-stockfish-largeboards_x86-64-modern.exe largeboards=yes && strip fairy-stockfish-largeboards_x86-64-modern.exe

- name: make largeboards x86-64-bmi2
run: cd src && make clean && make -j build COMP=mingw ARCH=x86-64-bmi2 EXE=fairy-stockfish-largeboards_x86-64-bmi2.exe largeboards=yes && strip fairy-stockfish-largeboards_x86-64-bmi2.exe
- name: make largeboards
run: cd src && make clean && make -j build COMP=mingw ARCH=${{ matrix.arch }} EXE=fairy-stockfish-largeboards_${{ matrix.arch }}.exe largeboards=yes && strip fairy-stockfish-largeboards_${{ matrix.arch }}.exe

- uses: actions/upload-artifact@v2
with:
name: fairy-stockfish
path: src/fairy-stockfish*.exe

linux:
strategy:
matrix:
arch: ["x86-64-bmi2", "x86-64-modern", "x86-64"]
runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v2

- name: make x86-64
run: cd src && make clean && make -j build COMP=gcc ARCH=x86-64 EXE=fairy-stockfish_x86-64 && strip fairy-stockfish_x86-64

- name: make x86-64-modern
run: cd src && make clean && make -j build COMP=gcc ARCH=x86-64-modern EXE=fairy-stockfish_x86-64-modern && strip fairy-stockfish_x86-64-modern

- name: make x86-64-bmi2
run: cd src && make clean && make -j build COMP=gcc ARCH=x86-64-bmi2 EXE=fairy-stockfish_x86-64-bmi2 && strip fairy-stockfish_x86-64-bmi2

- name: make largeboards x86-64
run: cd src && make clean && make -j build COMP=gcc ARCH=x86-64 EXE=fairy-stockfish-largeboards_x86-64 largeboards=yes && strip fairy-stockfish-largeboards_x86-64

- name: make largeboards x86-64-modern
run: cd src && make clean && make -j build COMP=gcc ARCH=x86-64-modern EXE=fairy-stockfish-largeboards_x86-64-modern largeboards=yes && strip fairy-stockfish-largeboards_x86-64-modern
- name: make
run: cd src && make clean && make -j build COMP=gcc ARCH=${{ matrix.arch }} EXE=fairy-stockfish_${{ matrix.arch }} && strip fairy-stockfish_${{ matrix.arch }}

- name: make largeboards x86-64-bmi2
run: cd src && make clean && make -j build COMP=gcc ARCH=x86-64-bmi2 EXE=fairy-stockfish-largeboards_x86-64-bmi2 largeboards=yes && strip fairy-stockfish-largeboards_x86-64-bmi2
- name: make largeboards
run: cd src && make clean && make -j build COMP=gcc ARCH=${{ matrix.arch }} EXE=fairy-stockfish-largeboards_${{ matrix.arch }} largeboards=yes && strip fairy-stockfish-largeboards_${{ matrix.arch }}

- uses: actions/upload-artifact@v2
with:
Expand Down

0 comments on commit 8376d2a

Please sign in to comment.