Skip to content

Commit

Permalink
Merge pull request MockbaTheBorg#180 from ravn/master
Browse files Browse the repository at this point in the history
verify RunCPM can be built for every push
  • Loading branch information
MockbaTheBorg authored Oct 21, 2023
2 parents d9a045e + 089b8ee commit 5103869
Show file tree
Hide file tree
Showing 4 changed files with 78 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/macos-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: MacOS build

on:
push:

jobs:
build:

runs-on: macos-latest

steps:
- uses: actions/checkout@v3
- name: make
run: make -C RunCPM macosx build
45 changes: 45 additions & 0 deletions .github/workflows/msbuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

name: MSBuild

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

env:
# Path to the solution file relative to the root of the project.
SOLUTION_FILE_PATH: .

# Configuration type to build.
# You can convert this to a build matrix if you need coverage of multiple configuration types.
# https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
BUILD_CONFIGURATION: Release

permissions:
contents: read

jobs:
build:
runs-on: windows-latest

steps:
- uses: actions/checkout@v3

- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1.0.2

# not needed and takes time
# - name: Restore NuGet packages
# working-directory: ${{env.GITHUB_WORKSPACE}}
# run: nuget restore ${{env.SOLUTION_FILE_PATH}}

- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
# Add additional options to the MSBuild command line here (like platform or verbosity level).
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}}
14 changes: 14 additions & 0 deletions .github/workflows/ubuntu-build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Ubuntu build

on:
push:

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: make
run: make -C RunCPM posix build
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,8 @@ RunCPM/lua/*.exe
RunCPM/lua/*.a
RunCPM/lua/lua
RunCPM/lua/luac
RunCPM/A
RunCPM/B
RunCPM/C
RunCPM/D
RunCPM/E

0 comments on commit 5103869

Please sign in to comment.