@@ -12,27 +12,35 @@ jobs:
12
12
releases-matrix :
13
13
name : Create release-artifacts
14
14
runs-on : ubuntu-latest
15
- strategy :
16
- matrix :
17
- # build and publish in parallel
18
- goos : [linux]
19
- goarch : ["386", "amd64", "arm", "arm64"]
20
15
steps :
21
16
- name : Check out the repository
22
17
uses : actions/checkout@v2
23
18
24
- - name : Setup golang version
19
+ - name : Setup Go build tools
25
20
uses : actions/setup-go@v2
26
21
with :
27
22
go-version : ' ^1.18'
28
23
29
- - name : Install dependencies
30
- run : sudo apt-get install -y libpam-dev
24
+ - name : Update package repositories
25
+ run : sudo apt update
26
+
27
+ - name : Setup C++ build tools
28
+ run : sudo apt install -y gcc make
29
+
30
+ - name : Install build dependencies
31
+ run : sudo apt install -y libcurl4-openssl-dev libjansson-dev libpam-dev unzip
31
32
32
33
- name : Generate the artifacts
33
34
run : |
35
+ # Build pam_aad_oidc.so
36
+ make
37
+
38
+ # Build libnss
39
+ wget https://github.com/hmeiland/linuxaad/archive/refs/tags/v0.3.1.zip
40
+ unzip v0.3.1.zip
41
+ cd linuxaad-0.3.1/libnss_aad/
34
42
make
35
- mv pam_aad_oidc.so pam_aad_oidc.${{ matrix.goarch }} .so
43
+ mv .libs/libnss_aad.so.2.0 ../../libnss_aad .so
36
44
37
45
- name : Upload the artifacts
38
46
uses : skx/github-action-publish-binaries@master
0 commit comments