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

Move CI to GitHub Actions #102

Merged
merged 31 commits into from Jul 23, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
ad7d903
Initial attempt to set up GitHub actions.
nealkruis Jul 17, 2020
12ee075
Remove appveyor setup.
nealkruis Jul 17, 2020
7b9af29
Move jobs into a single file.
nealkruis Jul 17, 2020
db03d5a
Change shell for build.
nealkruis Jul 17, 2020
a6d824e
Fix extra build and pandoc install.
nealkruis Jul 17, 2020
fb5330f
Change pandoc install args.
nealkruis Jul 17, 2020
83ca3ca
Refresh environment.
nealkruis Jul 17, 2020
4611b24
Check pandoc version.
nealkruis Jul 17, 2020
37044c7
Change chocolatey install.
nealkruis Jul 17, 2020
e5853f4
Refresh environment. Again.
nealkruis Jul 17, 2020
d12f409
Check PATH.
nealkruis Jul 17, 2020
926b680
Use powershell environment variable.
nealkruis Jul 17, 2020
33d4589
Install pandoc for all users.
nealkruis Jul 17, 2020
a0c14ea
Add pandoc to PATH.
nealkruis Jul 17, 2020
5ef7f98
Use workflow command to add to PATH.
nealkruis Jul 17, 2020
7e91a95
Combine into a single commit.
nealkruis Jul 17, 2020
aaca3e0
Add msbuild commands to PATH.
nealkruis Jul 20, 2020
3e2db8b
Set up LaTeX, and use MSVC developer commands.
nealkruis Jul 20, 2020
2e82122
Separate configure and build CMake scripts.
nealkruis Jul 20, 2020
dca4388
Separate out CI jobs.
nealkruis Jul 20, 2020
c39a7a7
Fix yml syntax.
nealkruis Jul 20, 2020
e883f33
Build wcmp for testing.
nealkruis Jul 20, 2020
e2ac23d
Fix wcmp build config.
nealkruis Jul 20, 2020
427b71f
Remove name from download path.
nealkruis Jul 20, 2020
e50bc2a
Install additional LaTeX packages.
nealkruis Jul 20, 2020
37105bf
Deploy on tag.
nealkruis Jul 22, 2020
3b5ec55
Add separate release workflow.
nealkruis Jul 22, 2020
4b31c90
Fix workflow syntax.
nealkruis Jul 22, 2020
e44a201
Use different action for deploying gh-pages.
nealkruis Jul 23, 2020
db854ac
Fix gh-pages commit message.
nealkruis Jul 23, 2020
5d866e2
Update badge.
nealkruis Jul 23, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
71 changes: 71 additions & 0 deletions .github/workflows/build-and-test.yml
@@ -0,0 +1,71 @@
name: Build and Test

on: push

jobs:
build-cse:
name: Build CSE executable
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Build
shell: cmd
run: build.bat no-pause
- name: Upload executable artifiact
uses: actions/upload-artifact@v2
with:
name: CSE.exe
path: msvc/CSE.exe
test-cse:
name: Test CSE
needs: build-cse
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Configure CMake
run: cmake -P cmake/configure.cmake
- name: Build wcmp
run: cmake --build . --config Release --target wcmp
working-directory: msvc/build
- name: Download executable artifact
uses: actions/download-artifact@v2
with:
name: CSE.exe
path: msvc
- name: Test
run: ctest -C Release --output-on-failure -E shadetest # CI can't do GPU calcs at this time
working-directory: msvc/build
build-doc:
name: Build CSE documentation
needs: build-cse
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Configure CMake
run: cmake -P cmake/configure.cmake
- name: Download executable artifact
uses: actions/download-artifact@v2
with:
name: CSE.exe
path: msvc
- name: Install pandoc
run: 'cinst -y pandoc --version=1.17.2 --ia=ALLUSERS=1'
- name: Add pandoc to path
run: echo "::add-path::C:\Program Files (x86)\Pandoc"
- name: Setup LaTeX
uses: r-lib/actions/setup-tinytex@v1
- name: Add LaTeX packages
run: tlmgr install mathspec fancyhdr
- name: Add MSVC developer commands to PATH
uses: ilammy/msvc-dev-cmd@v1
- name: Build docs
run: rake
working-directory: doc
- name: Upload documentation
uses: actions/upload-artifact@v2
with:
name: Documentation
path: doc/output
43 changes: 43 additions & 0 deletions .github/workflows/release.yml
@@ -0,0 +1,43 @@
name: Release

on:
release:
types:
- created

jobs:
release-cse:
name: Deploy CSE release
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Build
shell: cmd
run: build.bat no-pause
- name: Upload executable to release assets
uses: AButler/upload-release-assets@v2.0
with:
files: msvc/CSE.exe
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: Install pandoc
run: 'cinst -y pandoc --version=1.17.2 --ia=ALLUSERS=1'
- name: Add pandoc to path
run: echo "::add-path::C:\Program Files (x86)\Pandoc"
- name: Setup LaTeX
uses: r-lib/actions/setup-tinytex@v1
- name: Add LaTeX packages
run: tlmgr install mathspec fancyhdr
- name: Add MSVC developer commands to PATH
uses: ilammy/msvc-dev-cmd@v1
- name: Build docs
run: rake
working-directory: doc
- name: Update gh-pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: doc/output
user_name: 'cse-ci'
user_email: 'ci@cse.org'
full_commit_message: "Update docs for ${{ github.event.release.tag_name }}."
2 changes: 1 addition & 1 deletion README.md
@@ -1,4 +1,4 @@
[![Build status](https://ci.appveyor.com/api/projects/status/cw2gsrtb7i2kwn7x/branch/master?svg=true)](https://ci.appveyor.com/project/cse/cse/branch/master)
[![Build and Test](https://github.com/cse-sim/cse/workflows/Build%20and%20Test/badge.svg)](https://github.com/cse-sim/cse/actions?query=branch%3Amaster)

## California Simulation Engine (CSE)

Expand Down
74 changes: 0 additions & 74 deletions appveyor.yml

This file was deleted.

1 change: 1 addition & 0 deletions build.bat
@@ -1,4 +1,5 @@
@echo off
cmake -P cmake/configure.cmake
cmake -P cmake/build.cmake
IF "%1"=="" (
PAUSE
Expand Down
13 changes: 0 additions & 13 deletions cmake/build.cmake
@@ -1,16 +1,3 @@
message("Making build directory: ${CMAKE_CURRENT_SOURCE_DIR}/msvc/build")
file(MAKE_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/msvc)
file(MAKE_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/msvc/build)
message("Generating project files...")
execute_process(COMMAND ${CMAKE_COMMAND} ${CMAKE_CURRENT_SOURCE_DIR} -T v141_xp -A Win32
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/msvc/build
RESULT_VARIABLE success
)
if (NOT ${success} MATCHES "0")
message("Generation step failed.")
return()
endif()

message("Building CSE...")
execute_process(COMMAND ${CMAKE_COMMAND}
--build ${CMAKE_CURRENT_SOURCE_DIR}/msvc/build
Expand Down
12 changes: 12 additions & 0 deletions cmake/configure.cmake
@@ -0,0 +1,12 @@
message("Making build directory: ${CMAKE_CURRENT_SOURCE_DIR}/msvc/build")
file(MAKE_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/msvc)
file(MAKE_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/msvc/build)
message("Generating project files...")
execute_process(COMMAND ${CMAKE_COMMAND} ${CMAKE_CURRENT_SOURCE_DIR} -T v141_xp -A Win32
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/msvc/build
RESULT_VARIABLE success
)
if (NOT ${success} MATCHES "0")
message("Generation step failed.")
return()
endif()