-
Notifications
You must be signed in to change notification settings - Fork 5
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 #27 from LingmoOS/new
Reformat Tools
- Loading branch information
Showing
8 changed files
with
65 additions
and
88 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 |
---|---|---|
|
@@ -15,6 +15,9 @@ defaults: | |
|
||
jobs: | ||
build-trixie: | ||
strategy: | ||
matrix: | ||
devbuild: ['enabled', 'disabled'] | ||
runs-on: ubuntu-latest | ||
container: docker.io/library/debian:trixie-slim | ||
name: Build Trixie | ||
|
@@ -38,79 +41,24 @@ jobs: | |
apt-get install -y ./powershell.deb | ||
rm powershell.deb | ||
- name: Build Lingmo | ||
- name: Build Lingmo Nightly | ||
if: ${{ matrix.devbuild == 'enabled' }} | ||
run: | | ||
git config --global http.sslVerify false | ||
git config --global advice.detachedHead false | ||
pwsh ./build.ps1 | ||
chmod +x ./build.ps1 | ||
pwsh -c "./build.ps1 -BuildFromGit" | ||
- name: Build Lingmo Using Tag | ||
if: ${{ matrix.devbuild == 'disabled' }} | ||
run: | | ||
git config --global http.sslVerify false | ||
git config --global advice.detachedHead false | ||
chmod +x ./build.ps1 | ||
pwsh -c "./build.ps1" | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: Lingmo Artifacts hydrogen | ||
name: Lingmo Artifacts With Nightly ${{ matrix.devbuild }} | ||
path: BuildArtifacts | ||
compression-level: 9 # maximum compression | ||
|
||
|
||
# upload: | ||
# needs: build | ||
# runs-on: ubuntu-latest | ||
# name: Update to repo | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
|
||
# - uses: actions/download-artifact@v4 | ||
# with: | ||
# # Destination path. Supports basic tilde expansion. | ||
# # Optional. Default is $GITHUB_WORKSPACE | ||
# path: ./zips | ||
|
||
# # The repository owner and the repository name joined together by "/". | ||
# # If github-token is specified, this is the repository that artifacts will be downloaded from. | ||
# # Optional. Default is ${{ github.repository }} | ||
# repository: ${{ github.repository }} | ||
|
||
# # The id of the workflow run where the desired download artifact was uploaded from. | ||
# # If github-token is specified, this is the run that artifacts will be downloaded from. | ||
# # Optional. Default is ${{ github.run_id }} | ||
# run-id: ${{ github.run_id }} | ||
|
||
# - name: Prepare envs | ||
# run: | | ||
# sudo apt update && sudo apt install reprepro gnupg | ||
# echo "${{ secrets.GPG_SIGN_KEY }}" >> key.key | ||
# gpg --import key.key | ||
|
||
# - name: Clone repo | ||
# run: | | ||
# git clone https://github.com/LingmoOS-Testing/lingmo-rolling-mirror.git pkg_site | ||
# DEB_FILE_DIR="$(pwd)/zips" | ||
|
||
# rm -rf pkg_site/devrepo/* | ||
# cd pkg_site/helpers | ||
# bash init_repo.sh | ||
|
||
# git checkout --orphan latest_branch | ||
|
||
# DEB_FILES=$(find $DEB_FILE_DIR -type f -name '*.deb') | ||
# for debfile in $DEB_FILES; do | ||
# bash add_deb.sh "$debfile" | ||
# done | ||
# cd .. | ||
|
||
# git config --global user.email "[email protected]" | ||
# git config --global user.name "Lingmo Automation Packer" | ||
# git add . && git commit -m "Update Packages By Actions $(date)" | ||
|
||
# git branch -D master | ||
# git branch -m master | ||
|
||
# - name: Push changes | ||
# uses: ad-m/github-push-action@9870d48124da805820c70ebc6ba563c715551019 | ||
# with: | ||
# github_token: ${{ secrets.API_GITHUB_TOKEN }} | ||
# repository: "LingmoOS-Testing/lingmo-rolling-mirror" | ||
# directory: "./pkg_site" | ||
# branch: 'master' | ||
# force: true | ||
|
||
|
This file was deleted.
Oops, something went wrong.
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,6 @@ | ||
{ | ||
"Name": "lingmo-plymouth-theme", | ||
"Repository": "https://github.com/LingmoOS/lingmo-plymouth-theme.git", | ||
"Tag": "2.0.1", | ||
"BuildType": "Debian" | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<# | ||
.DESCRIPTION | ||
Contain commonly used funcions. | ||
#> | ||
|
||
<# | ||
.DESCRIPTION | ||
Execute a process and throw an error if not exit correctly | ||
.OUTPUTS | ||
True if sucess. Throw error if failed | ||
#> | ||
function Start-ShellProcess { | ||
param ( | ||
[Parameter(Mandatory)] | ||
[string] $execName, | ||
[System.Collections.ArrayList] $params | ||
) | ||
|
||
$proc = Start-Process $execName -ArgumentList $params -Wait -PassThru | ||
|
||
if ($proc.ExitCode -ne 0) { | ||
# 如果非正常结束,就会报错 | ||
throw "Error executing $($repoURL) with param: $($cloneDst)" | ||
} | ||
|
||
return $true | ||
} | ||
Export-ModuleMember -Function Start-ShellProcess |
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