-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #9 from NEKERAFA/feature/us-26-generate-grid
New version
- Loading branch information
Showing
34 changed files
with
793 additions
and
321 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,111 @@ | ||
name: ClingoSharp Publish | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build-windows: | ||
runs-on: windows-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
with: | ||
persist-credentials: false | ||
- name: Checkout submodules | ||
run: | | ||
git submodule init | ||
git submodule update | ||
- name: Building dependecies | ||
run: .\build.ps1 | ||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: clingo-windows | ||
path: .\clingo\build\win | ||
|
||
build-linux: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
with: | ||
persist-credentials: false | ||
- name: Checkout submodules | ||
run: | | ||
git submodule init | ||
git submodule update | ||
- name: Building dependecies | ||
run: ./build.sh | ||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: clingo-linux | ||
path: ./clingo/build/linux | ||
|
||
build: | ||
needs: [build-windows, build-linux] | ||
runs-on: windows-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v2 | ||
with: | ||
persist-credentials: false | ||
- name: Setup .NET Core | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 3.1.100 | ||
- name: Download Windows Artifacts | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: clingo-windows | ||
- name: Download Linux Artifacts | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: clingo-linux | ||
- name: Installing Artifacts | ||
run: | | ||
Copy-Item -Path '.\clingo-windows\*' -Destination '.\clingo\build\win' -Recurse | ||
Copy-Item -Path '.\clingo-linux\*' -Destination '.\clingo\build\linux' -Recurse | ||
- name: Build | ||
run: dotnet build --configuration Release | ||
- name: Test | ||
run: .\test.ps1 | ||
- name: Setup DocFX | ||
run: choco install docfx -y | ||
- name: Building documentation | ||
run: | | ||
docfx .\docfx.json | ||
if ($lastexitcode -ne 0){ | ||
throw [System.Exception] "docfx build failed with exit code $lastexitcode." | ||
} | ||
- name: Reporting coverage result | ||
uses: coverallsapp/github-action@master | ||
with: | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
path-to-lcov: .\coverage.info | ||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: site | ||
path: _site | ||
|
||
deploy: | ||
needs: [build] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
with: | ||
persist-credentials: false | ||
- name: Download Artifacts # The built project is downloaded into the 'site' folder. | ||
uses: actions/download-artifact@v1 | ||
with: | ||
name: site | ||
- name: Deploy | ||
uses: JamesIves/github-pages-deploy-action@releases/v3 | ||
with: | ||
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }} | ||
BRANCH: gh-pages | ||
FOLDER: "site" # The deployment folder should match the name of the artifact. Even though our project builds into the 'build' folder the artifact name of 'site' must be placed here. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.