Updated README.md #53
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: Linux | |
on: | |
push: | |
branches: [master] | |
pull_request: | |
branches: [master] | |
jobs: | |
build: | |
runs-on: ubuntu-18.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Conan | |
uses: turtlebrowser/get-conan@main | |
with: | |
version: 1.60.2 | |
- name: NASM | |
uses: ilammy/setup-nasm@v1 | |
- name: Dependencies | |
run: | | |
sudo apt-get install g++-multilib gcc-multilib | |
sudo dpkg --add-architecture i386 | |
sudo apt-get install nasm:i386 paxctl:i386 libtommath-dev:i386 | |
- name: GCC | |
uses: egor-tensin/setup-gcc@v1 | |
with: | |
version: 9 | |
platform: x86 | |
- name: Plugin Interface | |
run: | | |
cd .. | |
curl -o plugin.zip https://iswenzz.com/github/gsclib/plugin.zip | |
7z x plugin.zip | |
- name: Build | |
run: | | |
conan remote add iswenzz-conan https://iswenzz.jfrog.io/artifactory/api/conan/iswenzz-conan | |
mkdir build && cd build | |
conan install .. --build missing --profile:host ../.conan/linux_host.conf --profile:build ../.conan/linux_build.conf | |
cmake .. -DCONAN_DISABLE_CHECK_COMPILER=True | |
cmake --build . | |
- name: Artifact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: build-artifact | |
path: build | |
tests: | |
runs-on: ubuntu-18.04 | |
needs: [build] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Artifact | |
uses: actions/download-artifact@v2 | |
with: | |
name: build-artifact | |
path: build | |
- name: Tests | |
working-directory: build | |
run: | | |
chmod +x bin/gsclib.Tests | |
ctest -C Release |