gha: enable ip forwarding #13
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches-ignore: | |
- main | |
jobs: | |
virtuerl: | |
name: virtuerl | |
runs-on: self-hosted | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Install prerequisites | |
run: | | |
sudo apt update | |
sudo apt install -y rebar3 g++ tree nftables ovmf swtpm | |
- name: Enable IP forwarding | |
run: | | |
sudo tee /etc/sysctl.d/99-local.conf << EOF | |
net.ipv4.ip_forward=1 | |
net.ipv6.conf.all.forwarding=1 | |
EOF | |
sudo service procps restart | |
- name: Test | |
run: | | |
sudo rebar3 ct | |
- name: Create tar | |
run: | | |
sudo rebar3 tar | |
sudo find _build/ -name '*.tar.gz' -exec hack/repack {} \; |