Skip to content

Commit 0c97e94

Browse files
feat: update workflow to build Desktop environment on different job
1 parent 166d613 commit 0c97e94

File tree

1 file changed

+32
-3
lines changed

1 file changed

+32
-3
lines changed

.github/workflows/build-and-release.yml

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,29 @@ on:
66
- main
77

88
jobs:
9+
BuildDE:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: docker/setup-qemu-action@v2
14+
15+
- name: Setup Dependencies
16+
run: sudo apt-get update; sudo apt-get install git build-essential binfmt-support qemu-user-static debootstrap -y
17+
18+
- name: checkout submoudles
19+
run: |
20+
git submodule init
21+
git submodule update
22+
- name: Build tarballs
23+
run: |
24+
sudo bash build.sh -s jammy -v xfce4Raw -a all
25+
26+
- name: upload artifacts
27+
uses: actions/upload-artifact@v3
28+
with:
29+
name: de-tarballs
30+
path: fs-cook/out/*.tar.gz
31+
932
BuildRaw:
1033
runs-on: ubuntu-latest
1134
steps:
@@ -35,9 +58,15 @@ jobs:
3558
runs-on: ubuntu-latest
3659
needs:
3760
- BuildRaw
61+
- BuildDE
3862
steps:
3963
- uses: actions/checkout@v2
40-
- uses: actions/download-artifact@v3
64+
- name: ⬇️ Download Raw artifacts
65+
uses: actions/download-artifact@v3
66+
with:
67+
name: de-tarballs
68+
- name: ⬇️ Download DE artifacts
69+
uses: actions/download-artifact@v3
4170
with:
4271
name: raw-tarballs
4372
- name: Compute release tag
@@ -66,7 +95,7 @@ jobs:
6695
prerelease: false
6796
- name: Sleep for sometime
6897
run: sleep 60
69-
- name: Upload assets
98+
- name: ⬆️ Upload assets
7099
run: |
71100
set -x
72101
assets=()
@@ -78,7 +107,7 @@ jobs:
78107
env:
79108
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
80109

81-
- name: update json
110+
- name: ⚙️ update json
82111
run: |
83112
sudo apt-get install python3 -y
84113
sudo python3 gen_data/gen-update-json.py --release-tag ${{ env.VERSIONTAG }}

0 commit comments

Comments
 (0)