Skip to content

Commit

Permalink
Merge pull request #26 from mlund/master
Browse files Browse the repository at this point in the history
Github action for clang cmake build
  • Loading branch information
mlund authored Jul 17, 2023
2 parents 40ead54 + e7f4fda commit 0639fa2
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: CMake

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release

jobs:
build:
# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
# You can convert this to a matrix build if you need cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Download llvm-mos-sdk
working-directory: ${{github.workspace}}
run: wget https://github.com/llvm-mos/llvm-mos-sdk/releases/latest/download/llvm-mos-linux.tar.xz

- name: Unpack llvm-mos-sdk
working-directory: ${{github.workspace}}
run: tar xf llvm-mos-linux.tar.xz

- name: List working directory
working-directory: ${{github.workspace}}
run: ls -l

- name: Configure CMake
working-directory: ${{github.workspace}}/clang/
run: cmake -DCMAKE_PREFIX_PATH=${{github.workspace}}/llvm-mos .

- name: Build
working-directory: ${{github.workspace}}/clang/
run: make

0 comments on commit 0639fa2

Please sign in to comment.