Create GitHub workflows #4
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: Build project | ||
on: [push, pull_request] | ||
jobs: | ||
build-linux: | ||
runs-on: ubuntu-latest | ||
container: ubuntu:18.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Get short SHA | ||
id: slug | ||
run: echo "::set-output name=sha7::$(git rev-parse --short HEAD)" | ||
- name: Update and install packages | ||
run: | | ||
apt-get -qq update | ||
ACCEPT_EULA=Y apt-get -y dist-upgrade | ||
apt-get -y install g++ build-essential make autoconf libglfw3-dev libsdl2-image-dev libsdl2-dev libczmq-dev cppcheck | ||
- name: Build from makefile | ||
working-directory: Project | ||
run: | | ||
make -j 4 | ||
- name: Upload ELF | ||
working-directory: Project | ||
uses: actions/upload-artifact@v2 | ||
Check failure on line 25 in .github/workflows/build.yml GitHub Actions / Build projectInvalid workflow file
|
||
with: | ||
name: meshglide | ||
path: meshglide | ||
build-windows: | ||
runs-on: windows-2019 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Get short SHA | ||
id: slug | ||
run: echo "::set-output name=sha7::$(git rev-parse --short HEAD)" | ||
- name: Install vcpkg | ||
run: | | ||
git clone https://github.com/microsoft/vcpkg.git | ||
cd vcpkg | ||
bootstrap-vcpkg.bat | ||
- name: Install vcpkg dependencies | ||
run: | | ||
cd vcpkg | ||
vcpkg.exe install --triplet x64-windows-static --overlay-tripletscript |