Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Organize GitHub Workflows #82

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Build
on:
workflow_dispatch:
pull_request:
push:
branches: [master]
jobs:
build-project:
name: Build Project
runs-on: ubuntu-20.04
steps:
- name: Checkout Project
uses: actions/[email protected]

- name: Build Project
uses: threeal/[email protected]
with:
options: MUSEN_BUILD_EXAMPLES=ON
run-build: true
Original file line number Diff line number Diff line change
@@ -1,37 +1,36 @@
name: Deploy Documentation
name: Deploy
on:
workflow_dispatch:
push:
branches: [master]
jobs:
deploy-documentation:
deploy-docs:
name: Deploy Documentation
runs-on: ubuntu-20.04
permissions:
id-token: write
pages: write
environment:
name: github-pages
url: ${{ steps.deploy-pages.outputs.page_url }}
url: ${{ steps.deploy-docs.outputs.page_url }}
concurrency:
group: pages
cancel-in-progress: true
steps:
- name: Checkout this repository
- name: Checkout Project
uses: actions/[email protected]

- name: Install documentation dependencies
run: |
sudo apt-get update
sudo apt-get install -y doxygen
- name: Install Doxygen
run: sudo apt-get install -y doxygen

- name: Build documentation
- name: Build Documentation
run: doxygen

- name: Upload Documentation
uses: actions/[email protected]
with:
path: doc

- name: Deploy Pages
id: deploy-pages
- name: Deploy Documentation
id: deploy-docs
uses: actions/[email protected]
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
name: Build and Test
name: Test
on:
workflow_dispatch:
pull_request:
branches: [master]
push:
branches: [master]
jobs:
build-and-test:
test-project:
name: Test Project
runs-on: ubuntu-20.04
steps:
- name: Checkout this repository
- name: Checkout Project
uses: actions/[email protected]

- name: Build project
uses: threeal/[email protected]
with:
options: MUSEN_BUILD_TESTS=ON MUSEN_BUILD_EXAMPLES=ON
options: MUSEN_BUILD_TESTS=ON
run-build: true

- name: Test project
Expand Down