Add more oil fields #167
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
name: Continuous integration | |
on: | |
push: | |
branches: | |
- "*" | |
pull_request: | |
branches: | |
- "*" | |
workflow_dispatch: | |
env: | |
BUILD_PATH: "./src/vue" | |
jobs: | |
build-pages: | |
name: Build pages | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
fetch-depth: 0 | |
- name: Set up Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: "npm" | |
cache-dependency-path: ${{ env.BUILD_PATH }}/package-lock.json | |
- name: Setup Pages | |
id: pages | |
uses: actions/configure-pages@v3 | |
- name: Restore dependencies | |
run: npm install | |
working-directory: ${{ env.BUILD_PATH }} | |
- name: Build | |
run: npm run build | |
working-directory: ${{ env.BUILD_PATH }} | |
env: | |
BASE_PATH: "${{ steps.pages.outputs.base_path }}" | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v1 | |
with: | |
path: "${{ env.BUILD_PATH }}/dist" | |
build-dotnet: | |
name: Build and deploy | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v3 | |
with: | |
global-json-file: global.json | |
- name: Restore workloads | |
run: dotnet workload restore | |
- name: Restore dependencies | |
run: dotnet restore | |
- name: Build debug, no hash sets | |
run: dotnet build --configuration Debug /p:UseHashSets=false | |
- name: Build debug, no bit array | |
run: dotnet build --configuration Debug /p:UseBitArray=false | |
- name: Build debug, location as class | |
run: dotnet build --configuration Debug /p:LocationAsStruct=false | |
- name: Build debug, no shared instances | |
run: dotnet build --configuration Debug /p:UseSharedInstances=false | |
- name: Build debug, no vectors | |
run: dotnet build --configuration Debug /p:UseVectors=false | |
- name: Build debug, no stackalloc | |
run: dotnet build --configuration Debug /p:UseStackalloc=false | |
- name: Build debug, rent neighbors | |
run: dotnet build --configuration Debug /p:RentNeighbors=true | |
- name: Build debug, allow dynamic FLUTE degree | |
run: dotnet build --configuration Debug /p:AllowDynamicFluteDegree=true | |
- name: Build debug, no grid ToString | |
run: dotnet build --configuration Debug /p:EnableGridToString=false | |
- name: Build debug, with Lua settings | |
run: dotnet build --configuration Debug /p:UseLuaSettings=true | |
- name: Build debug, with Lua settings | |
run: dotnet build --configuration Release /p:UseLuaSettings=true | |
- name: Test with Lua settings | |
run: dotnet test --no-build --configuration Release --logger "console;verbosity=normal" | |
- name: Build release with default settings | |
run: dotnet build --configuration Release | |
- name: Test with default settings | |
run: dotnet test --no-build --configuration Release --logger "console;verbosity=normal" | |
- name: Publish | |
run: dotnet publish src/WebApp --configuration Release --output src/WebApp/bin/publish --runtime linux-x64 --no-self-contained /p:PublishReadyToRun=true |