Skip to content

Commit 060fd36

Browse files
feat(ci):Add lite version build and standardize Action naming (#464)
* add lite version * fixed lite ci * test * fixed lite version * fixed release build md5 and tar * fixed lite * fixed release ci * fixed ci secrets * fixed ci * fixed ci * fixed docker ci * fixed docker ci * fixed ci * fixed docker ci * fixed docker ci * fixed docker ci * ci:delete lite in beta version * feat(ci):Add Lite Version Build * Fixed Beta version Docker * Fixed Web Lite * fixed EOL * fixed EOL --------- Co-authored-by: Sumengjing <[email protected]>
1 parent 76a1f99 commit 060fd36

11 files changed

+493
-116
lines changed

.github/workflows/beta_release.yml

Lines changed: 1 addition & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: beta release
1+
name: Beta Release builds
22

33
on:
44
push:
@@ -141,33 +141,3 @@ jobs:
141141
path: ${{ github.workspace }}/build/compress/*
142142
compression-level: 0
143143
if-no-files-found: error # 'warn' or 'ignore' are also available, defaults to `warn`
144-
145-
146-
# TODO: We do not have desktop clients right now. We may need a better way to
147-
# trigger the build of desktop client when we actually have it.
148-
# desktop:
149-
# needs:
150-
# - release
151-
# name: Beta Release Desktop
152-
# runs-on: ubuntu-latest
153-
# steps:
154-
# - name: Checkout repo
155-
# uses: actions/checkout@v4
156-
# with:
157-
# repository: openlistteam/desktop-release
158-
# ref: main
159-
# persist-credentials: false
160-
# fetch-depth: 0
161-
162-
# - name: Commit
163-
# run: |
164-
# git config --local user.email "[email protected]"
165-
# git config --local user.name "IlaBot"
166-
# git commit --allow-empty -m "Trigger build for ${{ github.sha }}"
167-
168-
# - name: Push commit
169-
# uses: ad-m/github-push-action@master
170-
# with:
171-
# github_token: ${{ secrets.MY_TOKEN }}
172-
# branch: main
173-
# repository: openlistteam/desktop-release

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: build
1+
name: Test Build
22

33
on:
44
push:
@@ -61,4 +61,4 @@ jobs:
6161
uses: actions/upload-artifact@v4
6262
with:
6363
name: openlist_${{ env.SHA }}_${{ matrix.target }}
64-
path: build/*
64+
path: build/*

.github/workflows/changelog.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
name: auto changelog
1+
name: Automatic changelog
22

33
on:
44
push:
55
tags:
66
- 'v*'
77

8+
permissions:
9+
contents: write
10+
811
jobs:
912
changelog:
1013
name: Create Release

.github/workflows/release.yml

Lines changed: 64 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
name: release
1+
name: Release builds
22

33
on:
44
release:
55
types: [ published ]
6-
permissions: write-all
6+
7+
permissions:
8+
contents: write
79

810
jobs:
911
release:
@@ -67,32 +69,64 @@ jobs:
6769
files: build/compress/*
6870
prerelease: false
6971

72+
release-lite:
73+
strategy:
74+
matrix:
75+
platform: [ ubuntu-latest ]
76+
go-version: [ '1.21' ]
77+
name: Release Lite
78+
runs-on: ${{ matrix.platform }}
79+
steps:
80+
81+
- name: Free Disk Space (Ubuntu)
82+
uses: jlumbroso/free-disk-space@main
83+
with:
84+
# this might remove tools that are actually needed,
85+
# if set to "true" but frees about 6 GB
86+
tool-cache: false
87+
88+
# all of these default to true, but feel free to set to
89+
# "false" if necessary for your workflow
90+
android: true
91+
dotnet: true
92+
haskell: true
93+
large-packages: true
94+
docker-images: true
95+
swap-storage: true
96+
97+
- name: Prerelease
98+
uses: irongut/[email protected]
99+
with:
100+
token: ${{ secrets.GITHUB_TOKEN }}
101+
id: ${{ github.event.release.id }}
102+
prerelease: true
103+
104+
- name: Setup Go
105+
uses: actions/setup-go@v5
106+
with:
107+
go-version: ${{ matrix.go-version }}
108+
109+
- name: Checkout
110+
uses: actions/checkout@v4
111+
with:
112+
fetch-depth: 0
113+
114+
- name: Install dependencies
115+
run: |
116+
sudo snap install zig --classic --beta
117+
docker pull crazymax/xgo:latest
118+
go install github.com/crazy-max/xgo@latest
119+
sudo apt install upx
120+
121+
- name: Build
122+
run: |
123+
bash build.sh release lite
124+
env:
125+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
126+
127+
- name: Upload assets
128+
uses: softprops/action-gh-release@v2
129+
with:
130+
files: build/compress/*
131+
prerelease: false
70132

71-
# TODO: We do not have desktop clients right now. We may need a better way to
72-
# trigger the build of desktop client when we actually have it.
73-
# release_desktop:
74-
# needs: release
75-
# name: Release desktop
76-
# runs-on: ubuntu-latest
77-
# steps:
78-
# - name: Checkout repo
79-
# uses: actions/checkout@v4
80-
# with:
81-
# repository: openlistteam/desktop-release
82-
# ref: main
83-
# persist-credentials: false
84-
# fetch-depth: 0
85-
86-
# - name: Add tag
87-
# run: |
88-
# git config --local user.email "[email protected]"
89-
# git config --local user.name "IlaBot"
90-
# version=$(wget -qO- -t1 -T2 "https://api.github.com/repos/openlistteam/openlist/releases/latest" | grep "tag_name" | head -n 1 | awk -F ":" '{print $2}' | sed 's/\"//g;s/,//g;s/ //g')
91-
# git tag -a $version -m "release $version"
92-
93-
# - name: Push tags
94-
# uses: ad-m/github-push-action@master
95-
# with:
96-
# github_token: ${{ secrets.MY_TOKEN }}
97-
# branch: main
98-
# repository: openlistteam/desktop-release

.github/workflows/release_android.yml

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
name: release_android
1+
name: Release builds (Android)
22

33
on:
44
release:
55
types: [ published ]
66

7-
permissions: write-all
7+
permissions:
8+
contents: write
89

910
jobs:
1011
release_android:
@@ -36,3 +37,33 @@ jobs:
3637
uses: softprops/action-gh-release@v2
3738
with:
3839
files: build/compress/*
40+
41+
release_android_lite:
42+
strategy:
43+
matrix:
44+
platform: [ ubuntu-latest ]
45+
go-version: [ '1.21' ]
46+
name: Release
47+
runs-on: ${{ matrix.platform }}
48+
steps:
49+
50+
- name: Setup Go
51+
uses: actions/setup-go@v5
52+
with:
53+
go-version: ${{ matrix.go-version }}
54+
55+
- name: Checkout
56+
uses: actions/checkout@v4
57+
with:
58+
fetch-depth: 0
59+
60+
- name: Build
61+
run: |
62+
bash build.sh release lite android
63+
env:
64+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
65+
66+
- name: Upload assets
67+
uses: softprops/action-gh-release@v2
68+
with:
69+
files: build/compress/*

0 commit comments

Comments
 (0)