Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
m0n1b authored Mar 28, 2024
1 parent c766d22 commit d286d15
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,18 @@ on:

jobs:
build-and-upload:
runs-on: ubuntu-18.04 # 使用 Ubuntu 18.04
runs-on: ubuntu-20.04 # 使用 Ubuntu 20.04
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install dependencies
- name: Install and upgrade dependencies
run: |
sudo apt-get update
sudo apt-get install -y gcc
sudo apt-get install -y libmnl-dev=1.0.4-2 # 指定较低版本的 libmnl-dev
sudo apt-get install -y libnftnl-dev=1.1.1-1ubuntu1 # 指定较低版本的 libnftnl-dev
sudo apt-get install -y libmnl-dev -t $(lsb_release -cs)-backports # 使用 backports 仓库的 libmnl-dev
sudo apt-get install -y libnftnl-dev -t $(lsb_release -cs)-backports # 使用 backports 仓库的 libnftnl-dev
sudo apt-get upgrade -y # 升级所有已安装的软件包
- name: Build exploit
run: gcc exploit.c -o exploit -lmnl -lnftnl -no-pie -lpthread
Expand Down

0 comments on commit d286d15

Please sign in to comment.