@@ -9,7 +9,67 @@ defaults:
9
9
shell : bash
10
10
11
11
jobs :
12
- build_linux :
12
+ build_linux_wayland_x86_64 :
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+ - uses : actions/checkout@v2
16
+ with :
17
+ submodules : true
18
+ - uses : actions/setup-go@v3
19
+ with :
20
+ go-version : ' 1.19.5'
21
+ - run : echo "VERSION=$(echo ${{ github.event.release.tag_name }} | cut -c 2-)" >> $GITHUB_ENV
22
+ - run : sudo apt-get update -q
23
+ - run : sudo apt-get install libopenal-dev xorg-dev libgl1-mesa-dev libwayland-dev libxkbcommon-dev -y --allow-unauthenticated
24
+ - run : go build -tags wayland -v
25
+ - run : OS=Linux ARCH=x86_64 DISPDRIVER=wayland VERSION=$VERSION make tar
26
+ - run : OS=Linux ARCH=x86_64 DISPDRIVER=wayland VERSION=$VERSION make deb
27
+ - run : sha256sum Ludo-Linux-wayland-x86_64-${VERSION}.tar.gz > Ludo-Linux-wayland-x86_64-${VERSION}.tar.gz.sha256
28
+
29
+ - name : Upload Release Asset
30
+
31
+ env :
32
+ GITHUB_TOKEN : ${{ github.token }}
33
+ with :
34
+ asset_paths : ' ["./Ludo-*.tar.gz*", "./*.deb"]'
35
+
36
+ build_linux_wayland_arm :
37
+ runs-on : ubuntu-22.04
38
+ steps :
39
+ - uses : actions/checkout@v2
40
+ with :
41
+ submodules : true
42
+ - uses : actions/setup-go@v3
43
+ with :
44
+ go-version : ' 1.19.5'
45
+ - run : echo "VERSION=$(echo ${{ github.event.release.tag_name }} | cut -c 2-)" >> $GITHUB_ENV
46
+ - run : sudo apt update -q
47
+ - run : sudo apt install binutils-multiarch
48
+ - run : sudo dpkg --add-architecture armhf
49
+ - run : echo "" | sudo tee /etc/apt/sources.list
50
+ - run : echo "deb [arch=amd64] http://us.archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list
51
+ - run : echo "deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports jammy main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list
52
+ - run : echo "deb [arch=amd64] http://us.archive.ubuntu.com/ubuntu/ jammy-updates main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list
53
+ - run : echo "deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports jammy-updates main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list
54
+ - run : echo "deb [arch=amd64] http://us.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list
55
+ - run : echo "deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports jammy-backports main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list
56
+ - run : sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 6B05F25D762E3157
57
+ - run : sudo apt update -q
58
+ - run : sudo apt install -f libgl1-mesa-dev:amd64 libc6-dev:armhf gcc-arm-linux-gnueabihf libopenal-dev:armhf libgl1-mesa-dev:armhf libxcursor-dev:armhf libxrandr-dev:armhf libxinerama-dev:armhf libxi-dev:armhf libwayland-dev:armhf libxkbcommon-dev:armhf -y --allow-unauthenticated
59
+ - run : export PKG_CONFIG_PATH=/usr/lib/arm-linux-gnueabihf/pkgconfig/
60
+ - run : GOOS=linux GOARCH=arm GOARM=7 CGO_ENABLED=1 CC=arm-linux-gnueabihf-gcc go build -tags wayland -v
61
+ - run : OS=Linux ARCH=arm DISPDRIVER=wayland VERSION=$VERSION make tar
62
+ - run : OS=Linux ARCH=arm DISPDRIVER=wayland VERSION=$VERSION make deb
63
+ - run : sha256sum Ludo-Linux-wayland-arm-${VERSION}.tar.gz > Ludo-Linux-wayland-arm-${VERSION}.tar.gz.sha256
64
+
65
+ - name : Upload Release Asset
66
+
67
+ env :
68
+ GITHUB_TOKEN : ${{ github.token }}
69
+ with :
70
+ asset_paths : ' ["./Ludo-*.tar.gz*", "./*.deb"]'
71
+
72
+ build_linux_x11_x86_64 :
13
73
runs-on : ubuntu-latest
14
74
steps :
15
75
- uses : actions/checkout@v2
21
81
- run : echo "VERSION=$(echo ${{ github.event.release.tag_name }} | cut -c 2-)" >> $GITHUB_ENV
22
82
- run : sudo apt-get update -q
23
83
- run : sudo apt-get install libopenal-dev xorg-dev libgl1-mesa-dev -y --allow-unauthenticated
24
- - run : OS=Linux ARCH=x86_64 VERSION=$VERSION make tar
25
- - run : OS=Linux ARCH=x86_64 VERSION=$VERSION make deb
26
- - run : sha256sum Ludo-Linux-x86_64-${VERSION}.tar.gz > Ludo-Linux-x86_64-${VERSION}.tar.gz.sha256
84
+ - run : go build -tags x11 -v
85
+ - run : OS=Linux ARCH=x86_64 DISPDRIVER=x11 VERSION=$VERSION make tar
86
+ - run : OS=Linux ARCH=x86_64 DISPDRIVER=x11 VERSION=$VERSION make deb
87
+ - run : sha256sum Ludo-Linux-x11-x86_64-${VERSION}.tar.gz > Ludo-Linux-x11-x86_64-${VERSION}.tar.gz.sha256
27
88
28
89
- name : Upload Release Asset
29
90
32
93
with :
33
94
asset_paths : ' ["./Ludo-*.tar.gz*", "./*.deb"]'
34
95
35
- build_linux_arm :
96
+ build_linux_x11_arm :
36
97
runs-on : ubuntu-20.04
37
98
steps :
38
99
- uses : actions/checkout@v2
42
103
with :
43
104
go-version : ' 1.19.5'
44
105
- run : echo "VERSION=$(echo ${{ github.event.release.tag_name }} | cut -c 2-)" >> $GITHUB_ENV
106
+ - run : sudo apt update -q
45
107
- run : sudo apt install binutils-multiarch
46
108
- run : sudo dpkg --add-architecture armhf
47
109
- run : echo "" | sudo tee /etc/apt/sources.list
@@ -55,10 +117,10 @@ jobs:
55
117
- run : sudo apt update -q
56
118
- run : sudo apt install -f libgl1-mesa-dev:amd64 libxxf86vm-dev:armhf libc6-dev:armhf gcc-arm-linux-gnueabihf libopenal-dev:armhf libgl1-mesa-dev:armhf libxcursor-dev:armhf libxrandr-dev:armhf libxinerama-dev:armhf libxi-dev:armhf -y --allow-unauthenticated
57
119
- run : export PKG_CONFIG_PATH=/usr/lib/arm-linux-gnueabihf/pkgconfig/
58
- - run : GOOS=linux GOARCH=arm GOARM=7 CGO_ENABLED=1 CC=arm-linux-gnueabihf-gcc go build -v
59
- - run : OS=Linux ARCH=arm VERSION=$VERSION make tar
60
- - run : OS=Linux ARCH=arm VERSION=$VERSION make deb
61
- - run : sha256sum Ludo-Linux-arm-${VERSION}.tar.gz > Ludo-Linux-arm-${VERSION}.tar.gz.sha256
120
+ - run : GOOS=linux GOARCH=arm GOARM=7 CGO_ENABLED=1 CC=arm-linux-gnueabihf-gcc go build -tags x11 - v
121
+ - run : OS=Linux ARCH=arm DISPDRIVER=x11 VERSION=$VERSION make tar
122
+ - run : OS=Linux ARCH=arm DISPDRIVER=x11 VERSION=$VERSION make deb
123
+ - run : sha256sum Ludo-Linux-x11- arm-${VERSION}.tar.gz > Ludo-Linux-x11 -arm-${VERSION}.tar.gz.sha256
62
124
63
125
- name : Upload Release Asset
64
126
78
140
go-version : ' 1.19.5'
79
141
- run : echo "VERSION=$(echo ${{ github.event.release.tag_name }} | cut -c 2-)" >> $GITHUB_ENV
80
142
- run : echo "/Users/runner/go/bin" >> $GITHUB_PATH
81
- - run : go install golang.org/x/lint/golint@latest
82
143
- run : go install honnef.co/go/tools/cmd/staticcheck@latest
83
144
- run : brew install openal-soft
84
145
- run : echo ${{ secrets.OSXCERT }} | base64 --decode > dev.p12
0 commit comments