Skip to content

Commit

Permalink
Change template name to real name
Browse files Browse the repository at this point in the history
  • Loading branch information
Release-Candidate committed Apr 3, 2021
1 parent cfad1ad commit d73b979
Show file tree
Hide file tree
Showing 19 changed files with 232 additions and 589 deletions.
66 changes: 33 additions & 33 deletions .github/workflows/create_packages.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: MIT
# Copyright (C) 2021 Roland Csaszar
#
# Project: FSHARP_TEMPLATE
# Project: Tzolkin
# File: create_packages.yml
#
################################################################################
Expand All @@ -14,7 +14,7 @@ on:

push:
tags:
- 'v*.*.*'
- "v*.*.*"

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -33,23 +33,23 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
dotnet-version: 5.0.x

- name: Cache pip
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-FSHARP_TEMPLATE-pip-pipenv-${{ hashFiles('Pipfile.lock') }}
restore-keys: |
${{ runner.os }}-FSHARP_TEMPLATE-pip-pipenv
path: ~/.cache/pip
key: ${{ runner.os }}-Tzolkin-pip-pipenv-${{ hashFiles('Pipfile.lock') }}
restore-keys: |
${{ runner.os }}-Tzolkin-pip-pipenv
- name: Cache pipenv
uses: actions/cache@v2
with:
path: ~/.local/share/virtualenvs
key: ${{ runner.os }}-FSHARP_TEMPLATE-pipenv-${{ hashFiles('Pipfile.lock') }}
restore-keys: |
${{ runner.os }}-FSHARP_TEMPLATE-pipenv-
path: ~/.local/share/virtualenvs
key: ${{ runner.os }}-Tzolkin-pipenv-${{ hashFiles('Pipfile.lock') }}
restore-keys: |
${{ runner.os }}-Tzolkin-pipenv-
- name: Setup pipenv
run: python -m pip install --upgrade pipenv
Expand All @@ -61,8 +61,8 @@ jobs:
- name: Setup Tools
run: |
dotnet tool restore
dotnet paket restore
dotnet tool restore
dotnet paket restore
- uses: olegtarasov/get-tag@v2.1
id: tagName
Expand All @@ -76,8 +76,8 @@ jobs:
- name: Generate Changelog
run: |
cd $GITHUB_WORKSPACE/scripts
./get_changelog.sh > ../first_changelog.md
cd $GITHUB_WORKSPACE/scripts
./get_changelog.sh > ../first_changelog.md
- name: Release to GitHub
uses: softprops/action-gh-release@v1
Expand All @@ -98,7 +98,7 @@ jobs:
# tag: ${{ github.ref }}
# file_glob: false
# asset_name: NuGet Package
# file: ./packages/FSHARP_TEMPLATE.nupkg
# file: ./packages/Tzolkin.nupkg

- name: Upload
run: |
Expand All @@ -114,8 +114,8 @@ jobs:
executables:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04, macos-latest, windows-2019]
matrix:
os: [ubuntu-20.04, macos-latest, windows-2019]

steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
Expand All @@ -127,23 +127,23 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
dotnet-version: 5.0.x

- name: Cache pip
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-FSHARP_TEMPLATE-pip-pipenv-${{ hashFiles('Pipfile.lock') }}
restore-keys: |
${{ runner.os }}-FSHARP_TEMPLATE-pip-pipenv
path: ~/.cache/pip
key: ${{ runner.os }}-Tzolkin-pip-pipenv-${{ hashFiles('Pipfile.lock') }}
restore-keys: |
${{ runner.os }}-Tzolkin-pip-pipenv
- name: Cache pipenv
uses: actions/cache@v2
with:
path: ~/.local/share/virtualenvs
key: ${{ runner.os }}-FSHARP_TEMPLATE-pipenv-${{ hashFiles('Pipfile.lock') }}
restore-keys: |
${{ runner.os }}-FSHARP_TEMPLATE-pipenv-
path: ~/.local/share/virtualenvs
key: ${{ runner.os }}-Tzolkin-pipenv-${{ hashFiles('Pipfile.lock') }}
restore-keys: |
${{ runner.os }}-Tzolkin-pipenv-
- name: Setup pipenv
run: python -m pip install --upgrade pipenv
Expand All @@ -154,8 +154,8 @@ jobs:
- name: Setup Tools
run: |
dotnet tool restore
dotnet paket restore
dotnet tool restore
dotnet paket restore
- uses: olegtarasov/get-tag@v2.1
id: tagName
Expand All @@ -173,18 +173,18 @@ jobs:
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref }}
file_glob: false
asset_name: FSHARP_TEMPLATE-${{ runner.os }}.dll
file: ./bin/LibTemplate.dll
asset_name: Tzolkin-${{ runner.os }}.dll
file: ./bin/FSHARP_Tzolkin.dll

#- name: Release Exes to GitHub
# uses: svenstaro/upload-release-action@v2
# if: startsWith(github.ref, 'refs/tags/')
# with:
# repo_token: ${{ secrets.GITHUB_TOKEN }}
# tag: ${{ github.ref }}
# asset_name: FSHARP_TEMPLATE ${{ runner.os }}
# asset_name: Tzolkin ${{ runner.os }}
# file_glob: False
# file: ./bin/FSHARP_TEMPLATE.exe
# file: ./bin/Tzolkin.exe

- uses: actions/upload-artifact@v2
if: ${{ always() }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/fsharplint.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: MIT
# Copyright (C) 2021 Roland Csaszar
#
# Project: FSHARP_TEMPLATE
# Project: Tzolkin
# File: fsharplint.yml
#
################################################################################
Expand All @@ -18,7 +18,7 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
dotnet-version: 5.0.x

- name: Setup Tools
run: dotnet tool restore
Expand Down
49 changes: 23 additions & 26 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
# SPDX-License-Identifier: MIT
# Copyright (C) 2021 Roland Csaszar
#
# Project: FSHARP_TEMPLATE
# Project: Tzolkin
# File: linux.yml
#
################################################################################


name: Ubuntu 20.04

# Controls when the action will run.
Expand Down Expand Up @@ -38,23 +37,23 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
dotnet-version: 5.0.x

- name: Cache pip
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-FSHARP_TEMPLATE-pip-pipenv-${{ hashFiles('Pipfile.lock') }}
restore-keys: |
${{ runner.os }}-FSHARP_TEMPLATE-pip-pipenv
path: ~/.cache/pip
key: ${{ runner.os }}-Tzolkin-pip-pipenv-${{ hashFiles('Pipfile.lock') }}
restore-keys: |
${{ runner.os }}-Tzolkin-pip-pipenv
- name: Cache pipenv
uses: actions/cache@v2
with:
path: ~/.local/share/virtualenvs
key: ${{ runner.os }}-FSHARP_TEMPLATE-pipenv-${{ hashFiles('Pipfile.lock') }}
restore-keys: |
${{ runner.os }}-FSHARP_TEMPLATE-pipenv-
path: ~/.local/share/virtualenvs
key: ${{ runner.os }}-Tzolkin-pipenv-${{ hashFiles('Pipfile.lock') }}
restore-keys: |
${{ runner.os }}-Tzolkin-pipenv-
- name: Setup pipenv
run: python -m pip install --upgrade pipenv
Expand All @@ -66,8 +65,8 @@ jobs:
- name: Setup Tools
run: |
dotnet tool restore
dotnet paket restore
dotnet tool restore
dotnet paket restore
- name: Build All
run: |
Expand All @@ -80,7 +79,6 @@ jobs:
# name: Linux Buildnis Debug Log
# path: log_file.txt


use-package:
runs-on: ubuntu-20.04

Expand All @@ -93,23 +91,23 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
dotnet-version: 5.0.x

- name: Cache pip
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-FSHARP_TEMPLATE-pip-pipenv-${{ hashFiles('Pipfile.lock') }}
restore-keys: |
${{ runner.os }}-FSHARP_TEMPLATE-pip-pipenv
path: ~/.cache/pip
key: ${{ runner.os }}-Tzolkin-pip-pipenv-${{ hashFiles('Pipfile.lock') }}
restore-keys: |
${{ runner.os }}-Tzolkin-pip-pipenv
- name: Cache pipenv
uses: actions/cache@v2
with:
path: ~/.local/share/virtualenvs
key: ${{ runner.os }}-FSHARP_TEMPLATE-pipenv-${{ hashFiles('Pipfile.lock') }}
restore-keys: |
${{ runner.os }}-FSHARP_TEMPLATE-pipenv-
path: ~/.local/share/virtualenvs
key: ${{ runner.os }}-Tzolkin-pipenv-${{ hashFiles('Pipfile.lock') }}
restore-keys: |
${{ runner.os }}-Tzolkin-pipenv-
- name: Setup pipenv
run: python -m pip install --upgrade pipenv
Expand All @@ -121,14 +119,13 @@ jobs:
- name: Setup Tools
run: |
dotnet tool restore
dotnet paket restore
dotnet tool restore
dotnet paket restore
- name: Build All
run: |
cd $GITHUB_WORKSPACE
dotnet fake run ./build.fsx
# - uses: actions/upload-artifact@v2
# if: ${{ always() }}
# with:
Expand Down
22 changes: 11 additions & 11 deletions .github/workflows/linux_test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: MIT
# Copyright (C) 2021 Roland Csaszar
#
# Project: FSHARP_TEMPLATE
# Project: Tzolkin
# File: linux_test.yml
#
################################################################################
Expand Down Expand Up @@ -33,12 +33,12 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
dotnet-version: 5.0.x

- name: Setup Tools
run: |
dotnet tool restore
dotnet paket restore
dotnet tool restore
dotnet paket restore
- name: Run Tests
run: |
Expand Down Expand Up @@ -68,20 +68,20 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
dotnet-version: 5.0.x

- name: Setup Tools
run: |
dotnet tool restore
dotnet paket restore
run: |
dotnet tool restore
dotnet paket restore
- name: Run Tests
run: |
run: |
cd $GITHUB_WORKSPACE
dotnet fake run ./build.fsx target Tests
- uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: Test Results
path: ./test_results/*.trx
name: Test Results
path: ./test_results/*.trx

0 comments on commit d73b979

Please sign in to comment.