@@ -9,19 +9,82 @@ defaults:
9
9
shell : bash
10
10
11
11
jobs :
12
- build_linux :
12
+ build_linux_wayland_x86_64 :
13
13
runs-on : ubuntu-latest
14
14
steps :
15
15
- uses : actions/checkout@v2
16
16
with :
17
17
submodules : true
18
- - uses : actions/setup-go@v2
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
+ uses : alexellis/upload-assets@0.2.2
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
+ uses : alexellis/upload-assets@0.2.2
67
+ env :
68
+ GITHUB_TOKEN : ${{ github.token }}
69
+ with :
70
+ asset_paths : ' ["./Ludo-*.tar.gz*", "./*.deb"]'
71
+
72
+ build_linux_x11_x86_64 :
73
+ runs-on : ubuntu-latest
74
+ steps :
75
+ - uses : actions/checkout@v2
76
+ with :
77
+ submodules : true
78
+ - uses : actions/setup-go@v3
79
+ with :
80
+ go-version : ' 1.19.5'
19
81
- run : echo "VERSION=$(echo ${{ github.event.release.tag_name }} | cut -c 2-)" >> $GITHUB_ENV
20
82
- run : sudo apt-get update -q
21
83
- run : sudo apt-get install libopenal-dev xorg-dev libgl1-mesa-dev -y --allow-unauthenticated
22
- - run : OS=Linux ARCH=x86_64 VERSION=$VERSION make tar
23
- - run : OS=Linux ARCH=x86_64 VERSION=$VERSION make deb
24
- - 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
25
88
26
89
- name : Upload Release Asset
27
90
uses : alexellis/upload-assets@0.2.2
@@ -30,31 +93,34 @@ jobs:
30
93
with :
31
94
asset_paths : ' ["./Ludo-*.tar.gz*", "./*.deb"]'
32
95
33
- build_linux_arm :
34
- runs-on : ubuntu-18 .04
96
+ build_linux_x11_arm :
97
+ runs-on : ubuntu-20 .04
35
98
steps :
36
99
- uses : actions/checkout@v2
37
100
with :
38
101
submodules : true
39
- - uses : actions/setup-go@v2
102
+ - uses : actions/setup-go@v3
103
+ with :
104
+ go-version : ' 1.19.5'
40
105
- run : echo "VERSION=$(echo ${{ github.event.release.tag_name }} | cut -c 2-)" >> $GITHUB_ENV
106
+ - run : sudo apt update -q
41
107
- run : sudo apt install binutils-multiarch
42
108
- run : sudo dpkg --add-architecture armhf
43
109
- run : echo "" | sudo tee /etc/apt/sources.list
44
- - run : echo "deb [arch=amd64] http://us.archive.ubuntu.com/ubuntu/ bionic main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list
45
- - run : echo "deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports bionic main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list
46
- - run : echo "deb [arch=amd64] http://us.archive.ubuntu.com/ubuntu/ bionic -updates main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list
47
- - run : echo "deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports bionic -updates main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list
48
- - run : echo "deb [arch=amd64] http://us.archive.ubuntu.com/ubuntu/ bionic -backports main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list
49
- - run : echo "deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports bionic -backports main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list
110
+ - run : echo "deb [arch=amd64] http://us.archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list
111
+ - run : echo "deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports jammy main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list
112
+ - run : echo "deb [arch=amd64] http://us.archive.ubuntu.com/ubuntu/ jammy -updates main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list
113
+ - run : echo "deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports jammy -updates main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list
114
+ - run : echo "deb [arch=amd64] http://us.archive.ubuntu.com/ubuntu/ jammy -backports main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list
115
+ - run : echo "deb [arch=armhf] http://ports.ubuntu.com/ubuntu-ports jammy -backports main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list
50
116
- run : sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 6B05F25D762E3157
51
117
- run : sudo apt update -q
52
- - 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 -y --allow-unauthenticated
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
53
119
- run : export PKG_CONFIG_PATH=/usr/lib/arm-linux-gnueabihf/pkgconfig/
54
- - run : GOOS=linux GOARCH=arm GOARM=7 CGO_ENABLED=1 CC=arm-linux-gnueabihf-gcc go build -v
55
- - run : OS=Linux ARCH=arm VERSION=$VERSION make tar
56
- - run : OS=Linux ARCH=arm VERSION=$VERSION make deb
57
- - 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
58
124
59
125
- name : Upload Release Asset
60
126
uses : alexellis/upload-assets@0.2.2
@@ -69,11 +135,12 @@ jobs:
69
135
- uses : actions/checkout@v2
70
136
with :
71
137
submodules : true
72
- - uses : actions/setup-go@v2
138
+ - uses : actions/setup-go@v3
139
+ with :
140
+ go-version : ' 1.19.5'
73
141
- run : echo "VERSION=$(echo ${{ github.event.release.tag_name }} | cut -c 2-)" >> $GITHUB_ENV
74
142
- run : echo "/Users/runner/go/bin" >> $GITHUB_PATH
75
- - run : go get golang.org/x/lint/golint
76
- - run : go get honnef.co/go/tools/cmd/staticcheck
143
+ - run : go install honnef.co/go/tools/cmd/staticcheck@latest
77
144
- run : brew install openal-soft
78
145
- run : echo ${{ secrets.OSXCERT }} | base64 --decode > dev.p12
79
146
- run : security create-keychain -p github build.keychain
@@ -102,7 +169,9 @@ jobs:
102
169
- uses : actions/checkout@v2
103
170
with :
104
171
submodules : true
105
- - uses : actions/setup-go@v2
172
+ - uses : actions/setup-go@v3
173
+ with :
174
+ go-version : ' 1.19.5'
106
175
- run : echo "VERSION=$(echo ${{ github.event.release.tag_name }} | cut -c 2-)" >> $GITHUB_ENV
107
176
- run : choco install wget make hashdeep --ignore-checksums
108
177
- run : wget --no-check-certificate http://www.openal-soft.org/openal-binaries/openal-soft-1.21.0-bin.zip
0 commit comments