Skip to content

Commit b908e4c

Browse files
committed
[SWAY] github - Build 18.04 and 20.04
1 parent 7b80f54 commit b908e4c

File tree

2 files changed

+31
-9
lines changed

2 files changed

+31
-9
lines changed

.github/workflows/sway-ubuntu-20.04.yml renamed to .github/workflows/sway-ubuntu.yml

+30-8
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
name: Build Sway on Ubuntu 20.04
1+
name: Build Sway for Ubuntu
22
on: [push]
33
jobs:
4-
build_sway:
4+
build_20_04:
55
runs-on: ubuntu-latest
66
container: jameswalmsley/swaybuilder-ubuntu:20.04
77
steps:
@@ -23,23 +23,45 @@ jobs:
2323
- run: echo "🍏 This job's status is ${{ job.status }}."
2424
- uses: actions/upload-artifact@v3
2525
with:
26-
name: sway-ubuntu
26+
name: sway-ubuntu-20-04
2727
path: out/sway/*.tar.gz
2828

29-
release_sway:
30-
needs: build_sway
29+
build_18_04:
3130
runs-on: ubuntu-latest
31+
container: jameswalmsley/swaybuilder-ubuntu:18.04
3232
steps:
33-
- uses: actions/download-artifact@v3
33+
- run: "echo Checking out ${{ github.ref }}"
34+
- name: Check out repository code
35+
uses: actions/checkout@v2
36+
- name: Build Sway
37+
run: |
38+
export SUDO=
39+
export CONFIG_PACKAGE=y
40+
apt-get -y update
41+
DEBIAN_FRONTEND=noninteractive apt-get -y install build-essential make
42+
DEBIAN_FRONTEND=noninteractive apt-get -y install git python3-pip cmake pkg-config
43+
make sway_defconfig
44+
make pip-install
45+
make deb-install
46+
make source-checkout -j$(nproc)
47+
make -j$(nproc)
48+
- run: echo "🍏 This job's status is ${{ job.status }}."
49+
- uses: actions/upload-artifact@v3
3450
with:
35-
name: sway-ubuntu
51+
name: sway-ubuntu-18-04
52+
path: out/sway/*.tar.gz
3653

54+
release_sway:
55+
needs: [build_20_04, build_18_04]
56+
runs-on: ubuntu-latest
57+
steps:
58+
- uses: actions/download-artifact@v3
3759
- run: ls -R
3860

3961
- name: Release
4062
uses: softprops/action-gh-release@v1
4163
if: startsWith(github.ref, 'refs/tags/sway')
4264
with:
4365
files: |
44-
*.tar.gz
66+
**.tar.gz
4567
continue-on-error: true

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Build Sway on Ubuntu 20.04](https://github.com/jameswalmsley/ve-root/actions/workflows/sway-ubuntu-20.04.yml/badge.svg)](https://github.com/jameswalmsley/ve-root/actions/workflows/sway-ubuntu-20.04.yml)
1+
[![Build Sway on Ubuntu 20.04](https://github.com/jameswalmsley/ve-root/actions/workflows/sway-ubuntu.yml/badge.svg)](https://github.com/jameswalmsley/ve-root/actions/workflows/sway-ubuntu.yml)
22

33
```
44
ve-root - An embedded rootfs build tool.

0 commit comments

Comments
 (0)