From a46eafb7977c67a7094f7eb562794fc2e53a6a84 Mon Sep 17 00:00:00 2001 From: fscarmen <62703343+fscarmen@users.noreply.github.com> Date: Sat, 21 May 2022 02:00:14 +0800 Subject: [PATCH] Create resolvconf.yml --- .github/workflows/resolvconf.yml | 37 ++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/resolvconf.yml diff --git a/.github/workflows/resolvconf.yml b/.github/workflows/resolvconf.yml new file mode 100644 index 0000000..1ca9f2e --- /dev/null +++ b/.github/workflows/resolvconf.yml @@ -0,0 +1,37 @@ +name: "Build resolvconf" + +on: + workflow_dispatch: + +jobs: + Building: + name: "Build on Ubuntu" + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Install dependencies + run: | + apt -y install gcc bison make centos-release-scl + apt -y install devtoolset-8-gcc + apt -y install devtoolset-8-gcc-c++ + apt -y install devtoolset-8-binutils + mkdir -p /opt/release/ + + - name: Build resolvconf v3.12.0 + run: | + wget https://github.com/rsmarples/openresolv/archive/openresolv-3.12.0.tar.gz + tar xzvf openresolv-3.12.0.tar.gz + cd openresolv-openresolv-3.12.0 + ./configure + make + make install + cp ./resolvconf /opt/release/ + + - name: Release binaries + uses: softprops/action-gh-release@v1 + with: + tag_name: resolvconf v3.12.0 + files: /opt/release/resolvconf + env: + GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}