Skip to content

Commit 0d7734e

Browse files
committed
♻️ Drop multiple architecture builds. Also build libnss_aad from the linuxaad project.
1 parent 3de2a69 commit 0d7734e

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

.github/workflows/build-release.yml

Lines changed: 17 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,27 +12,35 @@ jobs:
1212
releases-matrix:
1313
name: Create release-artifacts
1414
runs-on: ubuntu-latest
15-
strategy:
16-
matrix:
17-
# build and publish in parallel
18-
goos: [linux]
19-
goarch: ["386", "amd64", "arm", "arm64"]
2015
steps:
2116
- name: Check out the repository
2217
uses: actions/checkout@v2
2318

24-
- name: Setup golang version
19+
- name: Setup Go build tools
2520
uses: actions/setup-go@v2
2621
with:
2722
go-version: '^1.18'
2823

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
3132

3233
- name: Generate the artifacts
3334
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/
3442
make
35-
mv pam_aad_oidc.so pam_aad_oidc.${{ matrix.goarch }}.so
43+
mv .libs/libnss_aad.so.2.0 ../../libnss_aad.so
3644
3745
- name: Upload the artifacts
3846
uses: skx/github-action-publish-binaries@master

0 commit comments

Comments
 (0)