Skip to content

yml syntax

yml syntax #4

Workflow file for this run

name: build
on: [push, pull_request]
jobs:
linux_build:
runs-on: ubuntu-latest
env:
CXX: g++
steps:
- name: Checkout

Check failure on line 11 in .github/workflows/.github.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/.github.yml

Invalid workflow file

You have an error in your yaml syntax on line 11
uses: actions/checkout@v3
- name: Build
run: |
make -j8
- name: Archive vhlt Linux tools
uses: actions/upload-artifact@v3
with:
name: vhlt-linux-tools
path: ./bin/*
macos_build:
runs-on: macos-latest
env:
CXX: clang++
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build
run: |
make -j8
- name: Archive vhlt macOS tools
uses: actions/upload-artifact@v3
with:
name: vhlt-macos-tools
path: ./bin/*
windows_build:
runs-on: windows-latest
env:
SOLUTION_FILE_PATH: .
BUILD_CONFIGURATION: Release
steps:
- uses: actions/checkout@v3
- name: Add MSBuild to PATH
uses: microsoft/[email protected]
- name: Build vhlt Windows tools
working-directory: ${{env.GITHUB_WORKSPACE}}
run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}}
- name: Archive vhlt Windows tools
uses: actions/upload-artifact@v3
with:
name: vhlt-windows-tools
path: D:\a\vhlt\bin\*