Skip to content

Commit

Permalink
[ci][linux] add modern way of adding DEB repositories
Browse files Browse the repository at this point in the history
Signed-off-by: Vitalii Koshura <[email protected]>
  • Loading branch information
AenBleidd committed Dec 28, 2024
1 parent a97c1af commit 1ec131c
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/linux-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ jobs:
if: success()
run: |
apt update -qq
apt install -y python3 gnupg2
apt install -y python3 gnupg2 curl
- name: Install distro package for further upgrade
if: success() && matrix.type == 'upgrade'
Expand All @@ -629,19 +629,19 @@ jobs:
- name: Install distro package for further upgrade from the alpha
if: success() && matrix.type == 'upgrade-from-alpha'
run: |
DEBIAN_FRONTEND=noninteractive apt install -y software-properties-common
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 40254C9B29853EA6
apt-add-repository "deb https://boinc.berkeley.edu/dl/linux/alpha/${{ matrix.os }} ${{ matrix.os }} main"
mkdir -p /etc/apt/keyrings
curl -fsSL https://boinc.berkeley.edu/dl/linux/alpha/${{ matrix.os }}/boinc.gpg | gpg --dearmor -o /etc/apt/keyrings/boinc.gpg
echo deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/boinc.gpg] https://boinc.berkeley.edu/dl/linux/alpha/${{ matrix.os }} ${{ matrix.os }} main | tee /etc/apt/sources.list.d/boinc.list > /dev/null
apt update -qq
mv /bin/systemctl /bin/systemctl.bak
DEBIAN_FRONTEND=noninteractive apt install -y boinc-client boinc-manager
- name: Install distro package for further upgrade from the stable
if: success() && matrix.type == 'upgrade-from-stable'
run: |
DEBIAN_FRONTEND=noninteractive apt install -y software-properties-common
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 40254C9B29853EA6
apt-add-repository "deb https://boinc.berkeley.edu/dl/linux/stable/${{ matrix.os }} ${{ matrix.os }} main"
mkdir -p /etc/apt/keyrings
curl -fsSL https://boinc.berkeley.edu/dl/linux/stable/${{ matrix.os }}/boinc.gpg | gpg --dearmor -o /etc/apt/keyrings/boinc.gpg
echo deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/boinc.gpg] https://boinc.berkeley.edu/dl/linux/stable/${{ matrix.os }} ${{ matrix.os }} main | tee /etc/apt/sources.list.d/boinc.list > /dev/null
apt update -qq
mv /bin/systemctl /bin/systemctl.bak
DEBIAN_FRONTEND=noninteractive apt install -y boinc-client boinc-manager
Expand Down Expand Up @@ -690,7 +690,7 @@ jobs:
if: success()
run: |
apt update -qq
apt install -y python3
apt install -y python3 gnupg2 curl
- name: Install distro package for further upgrade
if: success() && matrix.type == 'upgrade'
Expand All @@ -708,19 +708,19 @@ jobs:
- name: Install distro package for further upgrade from the alpha
if: success() && matrix.type == 'upgrade-from-alpha'
run: |
DEBIAN_FRONTEND=noninteractive apt install -y software-properties-common
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 40254C9B29853EA6
apt-add-repository "deb https://boinc.berkeley.edu/dl/linux/alpha/${{ matrix.os }} ${{ matrix.os }} main"
mkdir -p /etc/apt/keyrings
curl -fsSL https://boinc.berkeley.edu/dl/linux/alpha/${{ matrix.os }}/boinc.gpg | gpg --dearmor -o /etc/apt/keyrings/boinc.gpg
echo deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/boinc.gpg] https://boinc.berkeley.edu/dl/linux/alpha/${{ matrix.os }} ${{ matrix.os }} main | tee /etc/apt/sources.list.d/boinc.list > /dev/null
apt update -qq
mv /bin/systemctl /bin/systemctl.bak
DEBIAN_FRONTEND=noninteractive apt install -y boinc-client boinc-manager
- name: Install distro package for further upgrade from the stable
if: success() && matrix.type == 'upgrade-from-stable'
run: |
DEBIAN_FRONTEND=noninteractive apt install -y software-properties-common
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 40254C9B29853EA6
apt-add-repository "deb https://boinc.berkeley.edu/dl/linux/stable/${{ matrix.os }} ${{ matrix.os }} main"
mkdir -p /etc/apt/keyrings
curl -fsSL https://boinc.berkeley.edu/dl/linux/stable/${{ matrix.os }}/boinc.gpg | gpg --dearmor -o /etc/apt/keyrings/boinc.gpg
echo deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/boinc.gpg] https://boinc.berkeley.edu/dl/linux/stable/${{ matrix.os }} ${{ matrix.os }} main | tee /etc/apt/sources.list.d/boinc.list > /dev/null
apt update -qq
mv /bin/systemctl /bin/systemctl.bak
DEBIAN_FRONTEND=noninteractive apt install -y boinc-client boinc-manager
Expand Down

0 comments on commit 1ec131c

Please sign in to comment.