-
Notifications
You must be signed in to change notification settings - Fork 7
50 lines (49 loc) · 1.57 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Build Project
on:
push:
branches:
- 'main'
pull_request:
branches:
- 'main'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Update version
run: sudo apt-get update
- name: Install Dependencies
run: |
sudo ./dependencies.sh -yd
sudo ./configure.sh -yd
sudo sed -i 's/"immutable": true/"immutable": false/g' /etc/security/rootasrole.json
echo "/home/runner/.cargo/bin" >> $GITHUB_PATH
- name: Configure PAM
run: |
sudo bash -c 'echo "#%PAM-1.0
auth [success=1 default=ignore] pam_permit.so
auth requisite pam_permit.so
auth required pam_permit.so
account [success=1 default=ignore] pam_permit.so
account requisite pam_permit.so
account required pam_permit.so
session [success=1 default=ignore] pam_permit.so
session requisite pam_permit.so
session required pam_permit.so" | tee /etc/pam.d/sr'
- name: Add read access on config on rootasrole... Because Github Actions...
run: sudo chmod a+r /etc/security/rootasrole.json
- name: print config
run: cat /etc/security/rootasrole.json
- name: getenv
run: env
- name: Install Project
env:
PROFILE: debug
run: sudo -E make -e install
- name: Run Sr
env:
RUST_LOG: debug
run: /usr/bin/sr -h
- name: Run Chsr with sr
run: sr /usr/bin/chsr -h