Skip to content

Commit

Permalink
🔧 Fix: Adapt to correct path.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dynesshely committed Jul 26, 2023
1 parent 587cfd0 commit b17fa57
Show file tree
Hide file tree
Showing 21 changed files with 115 additions and 116 deletions.
191 changes: 95 additions & 96 deletions .github/workflows/auto-build.yml
Original file line number Diff line number Diff line change
@@ -1,101 +1,100 @@
name: auto-build

on:
schedule:
- cron: '0 6 * * 0'
schedule:
- cron: "0 6 * * 0"

jobs:
build:
strategy:
fail-fast: false
matrix:
os: [win, linux, osx]
arch: [x86, x64, arm, arm64]
exclude:
- os: osx
arch: x86
- os: osx
arch: arm
- os: linux
arch: x86

runs-on: windows-latest

steps:

- uses: actions/checkout@v3
with:
repository: 'Crequency/KitX'
ref: 'dev=main'
submodules: 'true'

- name: Init Source Code
shell: pwsh
run: |
./ToolKits/start.ps1 dashboard
./ToolKits/start.ps1 reference
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x

- name: Filter Publish Profiles
shell: pwsh
working-directory: "KitX Dashboard"
run: |
cd "./Properties/PublishProfiles/"
echo "===== Origin Publish Profiles ====="
ls
cd ..
mkdir tmp
cp PublishProfiles/${{ matrix.os }}-${{ matrix.arch }}*.pubxml tmp/
rm PublishProfiles/*
cp tmp/* PublishProfiles/
echo "===== Filter Publish Profiles ====="
ls PublishProfiles
- name: Publish
shell: pwsh
run: |
cd "ToolKits"
cd "KitX.ToolKits.Publisher"
echo "===== Run command: `dotnet run` ====="
dotnet run
echo "===== `dotnet run` command done ====="
$version = (Get-Item -path "..\..\KitX Publish\kitx-${{ matrix.os }}-${{ matrix.arch }}-single\KitX Dashboard.dll").VersionInfo.FileVersion
$date = (Get-Date -Format "yyyy.MM.dd")
echo "version: $version"
echo "date: $date"
# echo "version=$version" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
# echo "date=$date" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
echo "version=$version" >> $env:GITHUB_ENV
echo "date=$date" >> $env:GITHUB_ENV
cd ../../
- name: Create Release and Upload Release Asset
uses: softprops/action-gh-release@v1
with:
tag_name: v${{ env.version }}
name: Auto Build for KitX v${{ env.version }} on ${{ env.date }}
body: Auto release by Actions.
draft: false
prerelease: true
files: |
KitX Publish/*.zip
build:
strategy:
fail-fast: false
matrix:
os: [win, linux, osx]
arch: [x86, x64, arm, arm64]
exclude:
- os: osx
arch: x86
- os: osx
arch: arm
- os: linux
arch: x86

runs-on: windows-latest

steps:
- uses: actions/checkout@v3
with:
repository: "Crequency/KitX"
ref: "dev=main"
submodules: "true"

- name: Init Source Code
shell: pwsh
run: |
./ToolKits/start.ps1 dashboard
./ToolKits/start.ps1 reference
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0.x

- name: Filter Publish Profiles
shell: pwsh
working-directory: "KitX Clients/KitX Dashboard/KitX Dashboard"
run: |
cd "./Properties/PublishProfiles/"
echo "===== Origin Publish Profiles ====="
ls
cd ..
mkdir tmp
cp PublishProfiles/${{ matrix.os }}-${{ matrix.arch }}*.pubxml tmp/
rm PublishProfiles/*
cp tmp/* PublishProfiles/
echo "===== Filter Publish Profiles ====="
ls PublishProfiles
- name: Publish
shell: pwsh
run: |
cd "ToolKits"
cd "KitX.ToolKits.Publisher"
echo "===== Run command: `dotnet run` ====="
dotnet run
echo "===== `dotnet run` command done ====="
$version = (Get-Item -path "..\..\KitX Publish\kitx-${{ matrix.os }}-${{ matrix.arch }}-single\KitX Dashboard.dll").VersionInfo.FileVersion
$date = (Get-Date -Format "yyyy.MM.dd")
echo "version: $version"
echo "date: $date"
# echo "version=$version" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
# echo "date=$date" | Out-File -FilePath $Env:GITHUB_ENV -Encoding utf8 -Append
echo "version=$version" >> $env:GITHUB_ENV
echo "date=$date" >> $env:GITHUB_ENV
cd ../../
- name: Create Release and Upload Release Asset
uses: softprops/action-gh-release@v1
with:
tag_name: v${{ env.version }}
name: Auto Build for KitX v${{ env.version }} on ${{ env.date }}
body: Auto release by Actions.
draft: false
prerelease: true
files: |
KitX Publish/*.zip
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<PropertyGroup>
<Configuration>Release</Configuration>
<Platform>ARM</Platform>
<PublishDir>..\KitX Publish\kitx-linux-arm-single-cut\</PublishDir>
<PublishDir>..\..\..\KitX Publish\kitx-linux-arm-single-cut\</PublishDir>
<PublishProtocol>FileSystem</PublishProtocol>
<TargetFramework>net6.0</TargetFramework>
<RuntimeIdentifier>linux-arm</RuntimeIdentifier>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<PropertyGroup>
<Configuration>Debug</Configuration>
<Platform>ARM</Platform>
<PublishDir>..\KitX Publish\kitx-linux-arm-single\</PublishDir>
<PublishDir>..\..\..\KitX Publish\kitx-linux-arm-single\</PublishDir>
<PublishProtocol>FileSystem</PublishProtocol>
<TargetFramework>net6.0</TargetFramework>
<RuntimeIdentifier>linux-arm</RuntimeIdentifier>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<PropertyGroup>
<Configuration>Release</Configuration>
<Platform>ARM64</Platform>
<PublishDir>..\KitX Publish\kitx-linux-arm64-single-cut\</PublishDir>
<PublishDir>..\..\..\KitX Publish\kitx-linux-arm64-single-cut\</PublishDir>
<PublishProtocol>FileSystem</PublishProtocol>
<TargetFramework>net6.0</TargetFramework>
<RuntimeIdentifier>linux-arm64</RuntimeIdentifier>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<PropertyGroup>
<Configuration>Release</Configuration>
<Platform>ARM64</Platform>
<PublishDir>..\KitX Publish\kitx-linux-arm64-single\</PublishDir>
<PublishDir>..\..\..\KitX Publish\kitx-linux-arm64-single\</PublishDir>
<PublishProtocol>FileSystem</PublishProtocol>
<TargetFramework>net6.0</TargetFramework>
<RuntimeIdentifier>linux-arm64</RuntimeIdentifier>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<PropertyGroup>
<Configuration>Release</Configuration>
<Platform>x64</Platform>
<PublishDir>..\KitX Publish\kitx-linux-x64-runtime-relied\</PublishDir>
<PublishDir>..\..\..\KitX Publish\kitx-linux-x64-runtime-relied\</PublishDir>
<PublishProtocol>FileSystem</PublishProtocol>
<TargetFramework>net6.0</TargetFramework>
<RuntimeIdentifier>linux-x64</RuntimeIdentifier>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<PropertyGroup>
<Configuration>Release</Configuration>
<Platform>x64</Platform>
<PublishDir>..\KitX Publish\kitx-linux-x64-single-cut\</PublishDir>
<PublishDir>..\..\..\KitX Publish\kitx-linux-x64-single-cut\</PublishDir>
<PublishProtocol>FileSystem</PublishProtocol>
<TargetFramework>net6.0</TargetFramework>
<RuntimeIdentifier>linux-x64</RuntimeIdentifier>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<PropertyGroup>
<Configuration>Release</Configuration>
<Platform>x64</Platform>
<PublishDir>..\KitX Publish\kitx-linux-x64-single\</PublishDir>
<PublishDir>..\..\..\KitX Publish\kitx-linux-x64-single\</PublishDir>
<PublishProtocol>FileSystem</PublishProtocol>
<TargetFramework>net6.0</TargetFramework>
<RuntimeIdentifier>linux-x64</RuntimeIdentifier>
Expand Down
2 changes: 1 addition & 1 deletion KitX Dashboard/Properties/PublishProfiles/linux-x64.pubxml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<PropertyGroup>
<Configuration>Release</Configuration>
<Platform>x64</Platform>
<PublishDir>..\KitX Publish\kitx-linux-x64\</PublishDir>
<PublishDir>..\..\..\KitX Publish\kitx-linux-x64\</PublishDir>
<PublishProtocol>FileSystem</PublishProtocol>
<TargetFramework>net6.0</TargetFramework>
<RuntimeIdentifier>linux-x64</RuntimeIdentifier>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<PropertyGroup>
<Configuration>Release</Configuration>
<Platform>ARM64</Platform>
<PublishDir>..\KitX Publish\kitx-osx-arm64-single\</PublishDir>
<PublishDir>..\..\..\KitX Publish\kitx-osx-arm64-single\</PublishDir>
<PublishProtocol>FileSystem</PublishProtocol>
<TargetFramework>net6.0</TargetFramework>
<RuntimeIdentifier>osx-arm64</RuntimeIdentifier>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<PropertyGroup>
<Configuration>Release</Configuration>
<Platform>x64</Platform>
<PublishDir>..\KitX Publish\kitx-osx-x64-single-cut\</PublishDir>
<PublishDir>..\..\..\KitX Publish\kitx-osx-x64-single-cut\</PublishDir>
<PublishProtocol>FileSystem</PublishProtocol>
<TargetFramework>net6.0</TargetFramework>
<RuntimeIdentifier>osx-x64</RuntimeIdentifier>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<PropertyGroup>
<Configuration>Release</Configuration>
<Platform>x64</Platform>
<PublishDir>..\KitX Publish\kitx-osx-x64-single\</PublishDir>
<PublishDir>..\..\..\KitX Publish\kitx-osx-x64-single\</PublishDir>
<PublishProtocol>FileSystem</PublishProtocol>
<TargetFramework>net6.0</TargetFramework>
<RuntimeIdentifier>osx-x64</RuntimeIdentifier>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<PropertyGroup>
<Configuration>Release</Configuration>
<Platform>ARM</Platform>
<PublishDir>..\KitX Publish\kitx-win-arm-single\</PublishDir>
<PublishDir>..\..\..\KitX Publish\kitx-win-arm-single\</PublishDir>
<PublishProtocol>FileSystem</PublishProtocol>
<TargetFramework>net6.0</TargetFramework>
<RuntimeIdentifier>win-arm</RuntimeIdentifier>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<PropertyGroup>
<Configuration>Release</Configuration>
<Platform>ARM64</Platform>
<PublishDir>..\KitX Publish\kitx-win-arm64-single\</PublishDir>
<PublishDir>..\..\..\KitX Publish\kitx-win-arm64-single\</PublishDir>
<PublishProtocol>FileSystem</PublishProtocol>
<TargetFramework>net6.0</TargetFramework>
<RuntimeIdentifier>win-arm64</RuntimeIdentifier>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<PropertyGroup>
<Configuration>Release</Configuration>
<Platform>x64</Platform>
<PublishDir>..\KitX Publish\kitx-win-x64-runtime-relied\</PublishDir>
<PublishDir>..\..\..\KitX Publish\kitx-win-x64-runtime-relied\</PublishDir>
<PublishProtocol>FileSystem</PublishProtocol>
<TargetFramework>net6.0</TargetFramework>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<PropertyGroup>
<Configuration>Release</Configuration>
<Platform>x64</Platform>
<PublishDir>..\KitX Publish\kitx-win-x64-single-cut\</PublishDir>
<PublishDir>..\..\..\KitX Publish\kitx-win-x64-single-cut\</PublishDir>
<PublishProtocol>FileSystem</PublishProtocol>
<TargetFramework>net6.0</TargetFramework>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<PropertyGroup>
<Configuration>Release</Configuration>
<Platform>x64</Platform>
<PublishDir>..\KitX Publish\kitx-win-x64-single\</PublishDir>
<PublishDir>..\..\..\KitX Publish\kitx-win-x64-single\</PublishDir>
<PublishProtocol>FileSystem</PublishProtocol>
<TargetFramework>net6.0</TargetFramework>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
Expand Down
2 changes: 1 addition & 1 deletion KitX Dashboard/Properties/PublishProfiles/win-x64.pubxml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<PropertyGroup>
<Configuration>Release</Configuration>
<Platform>x64</Platform>
<PublishDir>..\KitX Publish\kitx-win-x64\</PublishDir>
<PublishDir>..\..\..\KitX Publish\kitx-win-x64\</PublishDir>
<PublishProtocol>FileSystem</PublishProtocol>
<TargetFramework>net6.0</TargetFramework>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<PropertyGroup>
<Configuration>Release</Configuration>
<Platform>x86</Platform>
<PublishDir>..\KitX Publish\kitx-win-x86-single-cut\</PublishDir>
<PublishDir>..\..\..\KitX Publish\kitx-win-x86-single-cut\</PublishDir>
<PublishProtocol>FileSystem</PublishProtocol>
<TargetFramework>net6.0</TargetFramework>
<RuntimeIdentifier>win-x86</RuntimeIdentifier>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<PropertyGroup>
<Configuration>Release</Configuration>
<Platform>x86</Platform>
<PublishDir>..\KitX Publish\kitx-win-x86-single\</PublishDir>
<PublishDir>..\..\..\KitX Publish\kitx-win-x86-single\</PublishDir>
<PublishProtocol>FileSystem</PublishProtocol>
<TargetFramework>net6.0</TargetFramework>
<RuntimeIdentifier>win-x86</RuntimeIdentifier>
Expand Down
2 changes: 1 addition & 1 deletion KitX Dashboard/Properties/PublishProfiles/win-x86.pubxml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
<PropertyGroup>
<Configuration>Release</Configuration>
<Platform>x86</Platform>
<PublishDir>..\KitX Publish\kitx-win-x86\</PublishDir>
<PublishDir>..\..\..\KitX Publish\kitx-win-x86\</PublishDir>
<PublishProtocol>FileSystem</PublishProtocol>
<TargetFramework>net6.0</TargetFramework>
<RuntimeIdentifier>win-x86</RuntimeIdentifier>
Expand Down

0 comments on commit b17fa57

Please sign in to comment.