Fix PR workflow and compiler flags #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: C/C++ CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Update package list for i386 | |
run: sudo dpkg --add-architecture i386 && sudo apt-get -y update | |
- name: Install packages | |
run: sudo apt-get -y install build-essential g++-multilib gcc-mingw-w64 | |
- name: make | |
run: make | |
- name: cleanup 1 | |
run: git clean -xdf | |
- name: make win32 | |
run: make OSTYPE=win32 | |
- name: cleanup 2 | |
run: git clean -xdf |