Skip to content

Commit

Permalink
trial-error-centos7
Browse files Browse the repository at this point in the history
  • Loading branch information
hillu committed Aug 1, 2024
1 parent cb89a4f commit d32d39d
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 7 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -213,18 +213,30 @@ jobs:
path: target/x86_64-alpine-linux-musl/release/laurel2audit

build-x86_64-gnu-old:
env:
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
runs-on: ubuntu-latest
container: centos:7
steps:
- name: Prepare
run: |
sed -i \
-e 's,^#baseurl=http://mirror.centos.org/centos/,baseurl=https://vault.centos.org/centos/,g' \
-e 's,^mirrorlist=http://mirrorlist.centos.org/,#&1,' \
-e 's,^# *baseurl=http://mirror.centos.org/centos/,baseurl=https://vault.centos.org/centos/,g' \
-e 's,^mirrorlist=http://mirrorlist.centos.org,#&1,' \
/etc/yum.repos.d/*.repo
yum -q -y update
yum -q -y install centos-release-scl
yum -q -y install gcc llvm-toolset-7-clang file libacl-devel
sed -i \
-e 's,^# *baseurl=http://mirror.centos.org/centos/,baseurl=https://vault.centos.org/centos/,g' \
-e 's,^mirrorlist=http://mirrorlist.centos.org,#&1,' \
/etc/yum.repos.d/*.repo
- name: Install misc.
run: |
yum -q -y install gcc file libacl-devel
- name: Install LLVM
run: |
yum -q -y install llvm-toolset-7-clang
- name: Install Rust toolchain (stable)
uses: actions-rs/toolchain@v1
with:
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,14 +72,17 @@ jobs:

build-glibc:
needs: prep
env:
ACTIONS_RUNNER_FORCE_ACTIONS_NODE_VERSION: node16
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
runs-on: ubuntu-latest
container: centos:7
steps:
- name: Prepare
run: |
sed -i \
-e 's,^#baseurl=http://mirror.centos.org/centos/,baseurl=https://vault.centos.org/centos/,g' \
-e 's,^mirrorlist=http://mirrorlist.centos.org/,#&1,' \
-e 's,^# baseurl=http://mirror.centos.org/centos/,baseurl=https://vault.centos.org/centos/,g' \
-e 's,^mirrorlist=http://mirrorlist.centos.org,#&1,' \
/etc/yum.repos.d/*.repo
yum -q -y update
yum -q -y install centos-release-scl
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/selinux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ jobs:
- name: Prepare
run: |
sed -i \
-e 's,^#baseurl=http://mirror.centos.org/centos/,baseurl=https://vault.centos.org/centos/,g' \
-e 's,^mirrorlist=http://mirrorlist.centos.org/,#&1,' \
-e 's,^# *baseurl=http://mirror.centos.org/centos/,baseurl=https://vault.centos.org/centos/,g' \
-e 's,^mirrorlist=http://mirrorlist.centos.org,#&1,' \
/etc/yum.repos.d/*.repo
yum install -y selinux-policy-devel
- uses: actions/checkout@v2
Expand Down

0 comments on commit d32d39d

Please sign in to comment.