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

Add workflows trigger script #1

Open
wants to merge 34 commits into
base: base-branch
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
324c1f5
Prepare workflows for testing
nikolai-laevskii May 9, 2023
c5148fa
Disable unnecessary workflows
nikolai-laevskii May 9, 2023
312014f
Add sleep command for windows
nikolai-laevskii May 9, 2023
72fcd70
Run only on windows
nikolai-laevskii May 9, 2023
1980c9e
Increase sleep time up to 2 minutes just to be sure
nikolai-laevskii May 9, 2023
d06b391
Try version 2 instead of 3
nikolai-laevskii May 9, 2023
7f49519
Run without build
nikolai-laevskii May 9, 2023
0cbeab4
Try different order
nikolai-laevskii May 9, 2023
9d6cc51
Try to uninstall dotnet before running second installer
nikolai-laevskii May 9, 2023
2e9127e
Try different utility for uninstalling
nikolai-laevskii May 9, 2023
c6b5791
Use setup-dotnet as local action
nikolai-laevskii May 10, 2023
5b961d8
Fix path to local action
nikolai-laevskii May 10, 2023
f2e67fd
Remove uninstall script
nikolai-laevskii May 10, 2023
1ffa6c8
Fix path to action
nikolai-laevskii May 10, 2023
437066f
Update install-dotnet.ps1
nikolai-laevskii May 10, 2023
97e7fcd
Try to install each dotnet version in separate directory
nikolai-laevskii May 10, 2023
e53ffd9
Experiment with checking if dotnet version is already installed
nikolai-laevskii May 11, 2023
a1994a0
Revert "Experiment with checking if dotnet version is already installed"
nikolai-laevskii May 11, 2023
ce6f513
Use setup-dotnet as a submodule
nikolai-laevskii May 11, 2023
256c472
Update url of setup-dotnet submodule
nikolai-laevskii May 11, 2023
7ec31d4
Update dotnet installers
nikolai-laevskii May 11, 2023
5f0bfc6
Fix attempt: keep different versions in different folders
nikolai-laevskii May 11, 2023
a99f830
Try approach with -SkipNonVersionedFiles
nikolai-laevskii May 11, 2023
a484fea
Build
nikolai-laevskii May 11, 2023
78a11dc
Use different commit for Fronter.NET
nikolai-laevskii May 11, 2023
533bae4
Test overwriting files version
nikolai-laevskii May 11, 2023
e815357
Test with version 2
nikolai-laevskii May 11, 2023
7e01232
Use approach with only major versions
nikolai-laevskii May 12, 2023
46721fe
Update commit of setup-dotnet
nikolai-laevskii May 12, 2023
66bce82
Add build process back to workflow
nikolai-laevskii May 12, 2023
df6ba09
Fix incorrect flag position
nikolai-laevskii May 12, 2023
c3c23bc
Use postfix instead of subdirectory
nikolai-laevskii May 12, 2023
a10584b
Revert "Use postfix instead of subdirectory"
nikolai-laevskii May 12, 2023
8e42cdd
Sync with setup-dotnet
nikolai-laevskii May 12, 2023
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
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: Build

on:
pull_request:
push:
branches:
- never

concurrency:
group: ci-build-${{ github.ref }}-1
Expand Down
25 changes: 3 additions & 22 deletions .github/workflows/build_dev_version.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,27 @@
name: Build development version
on:
push:
branches:
- 'master'
pull_request:

jobs:
remove_old_artifacts:
name: Remove old artifacts
runs-on: ubuntu-latest
steps:
- name: Remove old artifacts
uses: kolpav/purge-artifacts-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
expire-in: 0


upload_dev_build_artifact:
name: Upload development build
needs: remove_old_artifacts
runs-on: ${{ matrix.os }}
strategy:
matrix:
build:
- win-x64
- linux-x64
include:
- build: win-x64
os: windows-latest
archive_type: zip
archive_extension: .zip
- build: linux-x64
os: ubuntu-latest
archive_type: tar
archive_extension: .tgz
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
submodules: recursive
- name: "Setup Dotnet for use with actions"
uses: actions/setup-dotnet@v3
uses: ./setup-dotnet
with:
global-json-file: Fronter.NET/global.json
- name: "Build frontend"
Expand All @@ -49,7 +30,7 @@ jobs:
fronter_dir: 'Fronter.NET'
release_dir: 'Publish'
- name: Setup Dotnet for use with actions
uses: actions/setup-dotnet@v3
uses: ./setup-dotnet
with:
global-json-file: global.json
- name: "Build backend"
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/find_braces_mismatches.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: "Find braces mismatches"
on: [push]
on:
push:
branches:
- never
jobs:
find_braces_mismatches:
runs-on: ubuntu-latest
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: "Test"

on:
pull_request:
push:
branches:
- never

concurrency:
group: ci-tests-${{ github.ref }}-1
Expand Down
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,6 @@
[submodule "IR-CK3_TFE-Islam"]
path = RiseOfIslam
url = https://github.com/TinWiz/IR-CK3_TFE-Islam
[submodule "setup-dotnet"]
path = setup-dotnet
url = [email protected]:nikolai-laevskii/setup-dotnet.git
1 change: 1 addition & 0 deletions setup-dotnet
Submodule setup-dotnet added at 224311