1
- name : ' publish-release'
1
+ name : " publish-release"
2
2
3
3
on :
4
4
push :
5
5
tags :
6
6
- " *"
7
7
8
8
jobs :
9
- build :
10
- runs-on : ubuntu-20.04
9
+ build1 :
10
+ runs-on :
11
+ - ubuntu-22.04
11
12
steps :
12
- - uses : actions/checkout@v4
13
- - name : " install Rust stable"
14
- uses : dtolnay/rust-toolchain@stable
15
- - name : " install go"
16
- uses : actions/setup-go@v5
17
- with :
18
- go-version : ' 1.22'
19
- - run : go version
20
- - name : " create dist dir"
21
- run : |
22
- mkdir -p dist/auth-service
23
- mkdir -p dist/openvpn-plugin
24
- mkdir -p dist/radius-client
25
- - name : " build auth-service"
26
- run : |
27
- cd auth-service
28
- go build -o auth-service ./cmd/auth-service/main.go
29
- cp auth-service ../dist/auth-service/auth-service
30
- cp config/config.yml ../dist/auth-service/config.yml
31
- - name : " build openvpn-plugin"
32
- run : |
33
- cd openvpn-plugin
34
- cargo build --release
35
- cp target/release/libopenvpn_auth_plugin.so ../dist/openvpn-plugin/libopenvpn_auth_plugin.so
36
- cp config/config.yml ../dist/openvpn-plugin/config.yml
37
- - name : " build radius-client"
38
- run : |
39
- cd radius-client
40
- go build -o radius-client
41
- mv radius-client ../dist/radius-client/radius-client
42
- - name : " make archive"
43
- run : |
44
- tar -czf openvpn-multi-authentication-plugin-linux-amd64.tar.gz -C dist .
45
- - name : " upload release"
46
- uses : svenstaro/upload-release-action@v2
47
- with :
48
- repo_token : ${{ secrets.GITHUB_TOKEN }}
49
- file : ${{ github.workspace }}/openvpn-multi-authentication-plugin-linux-amd64.tar.gz
13
+ - uses : actions/checkout@v4
14
+ - name : " install Rust stable"
15
+ uses : dtolnay/rust-toolchain@stable
16
+ - name : " install go"
17
+ uses : actions/setup-go@v5
18
+ with :
19
+ go-version : " 1.22"
20
+ - run : go version
21
+ - name : " create dist dir"
22
+ run : |
23
+ mkdir -p dist/auth-service
24
+ mkdir -p dist/openvpn-plugin
25
+ mkdir -p dist/radius-client
26
+ - name : " build auth-service"
27
+ run : |
28
+ cd auth-service
29
+ go build -o auth-service ./cmd/auth-service/main.go
30
+ cp auth-service ../dist/auth-service/auth-service
31
+ cp config/config.yml ../dist/auth-service/config.yml
32
+ - name : " build openvpn-plugin"
33
+ run : |
34
+ cd openvpn-plugin
35
+ cargo build --release
36
+ cp target/release/libopenvpn_auth_plugin.so ../dist/openvpn-plugin/libopenvpn_auth_plugin.so
37
+ cp config/config.yml ../dist/openvpn-plugin/config.yml
38
+ - name : " build radius-client"
39
+ run : |
40
+ cd radius-client
41
+ go build -o radius-client
42
+ mv radius-client ../dist/radius-client/radius-client
43
+ - name : " make archive"
44
+ run : |
45
+ tar -czf openvpn-multi-authentication-plugin-linux-libssl1.1-amd64.tar.gz -C dist .
46
+ - name : " upload release"
47
+ uses : svenstaro/upload-release-action@v2
48
+ with :
49
+ repo_token : ${{ secrets.GITHUB_TOKEN }}
50
+ file : ${{ github.workspace }}/openvpn-multi-authentication-plugin-linux-libssl1.1-amd64.tar.gz
51
+ build2 :
52
+ runs-on :
53
+ - ubuntu-24.04
54
+ steps :
55
+ - uses : actions/checkout@v4
56
+ - name : " install Rust stable"
57
+ uses : dtolnay/rust-toolchain@stable
58
+ - name : " install go"
59
+ uses : actions/setup-go@v5
60
+ with :
61
+ go-version : " 1.22"
62
+ - run : go version
63
+ - name : " create dist dir"
64
+ run : |
65
+ mkdir -p dist/auth-service
66
+ mkdir -p dist/openvpn-plugin
67
+ mkdir -p dist/radius-client
68
+ - name : " build auth-service"
69
+ run : |
70
+ cd auth-service
71
+ go build -o auth-service ./cmd/auth-service/main.go
72
+ cp auth-service ../dist/auth-service/auth-service
73
+ cp config/config.yml ../dist/auth-service/config.yml
74
+ - name : " build openvpn-plugin"
75
+ run : |
76
+ cd openvpn-plugin
77
+ cargo build --release
78
+ cp target/release/libopenvpn_auth_plugin.so ../dist/openvpn-plugin/libopenvpn_auth_plugin.so
79
+ cp config/config.yml ../dist/openvpn-plugin/config.yml
80
+ - name : " build radius-client"
81
+ run : |
82
+ cd radius-client
83
+ go build -o radius-client
84
+ mv radius-client ../dist/radius-client/radius-client
85
+ - name : " make archive"
86
+ run : |
87
+ tar -czf openvpn-multi-authentication-plugin-linux-libssl3-amd64.tar.gz -C dist .
88
+ - name : " upload release"
89
+ uses : svenstaro/upload-release-action@v2
90
+ with :
91
+ repo_token : ${{ secrets.GITHUB_TOKEN }}
92
+ file : ${{ github.workspace }}/openvpn-multi-authentication-plugin-linux-libssl3-amd64.tar.gz
0 commit comments