From 7f9c7b2f46791983076bf95c1006254eac220507 Mon Sep 17 00:00:00 2001 From: Yevhenii Babichenko Date: Wed, 21 Aug 2024 01:47:16 +0300 Subject: [PATCH] test --- .github/workflows/test-makepkg-ubuntu.yml | 46 +++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 .github/workflows/test-makepkg-ubuntu.yml diff --git a/.github/workflows/test-makepkg-ubuntu.yml b/.github/workflows/test-makepkg-ubuntu.yml new file mode 100644 index 0000000..bd6a9d1 --- /dev/null +++ b/.github/workflows/test-makepkg-ubuntu.yml @@ -0,0 +1,46 @@ +on: + push: + +name: Test makepkg on ubuntu + +jobs: + hello: + strategy: + fail-fast: false + matrix: + include: + - bin: "" + - bin: "-bin" + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - run: | + VERSION=${GITHUB_REF#refs/tags/v} + + sudo apt-get update + sudo apt-get install -y asciidoc + + git clone https://github.com/archlinux/arch-install-scripts.git + cd arch-install-scripts + sudo make install + cd .. + + cargo xtask packaging $VERSION aur${{matrix.bin}} + + mkdir -p ~/.ssh + echo "${{ secrets.AUR_SSH_PRIVATE_KEY }}" > ~/.ssh/aur + chmod 600 ~/.ssh/aur + echo "Host aur.archlinux.org" >> ~/.ssh/config + echo " IdentityFile ~/.ssh/aur" >> ~/.ssh/config + echo " User aur" >> ~/.ssh/config + ssh-keyscan -H aur.archlinux.org >> ~/.ssh/known_hosts + + git clone ssh://aur@aur.archlinux.org/fixit${{ matrix.bin }}.git aur + cp PKGBUILD .SRCINFO aur/ + cd aur + git config user.name "github-actions[bot]" + git config user.email "github-actions[bot]@users.noreply.github.com" + git add PKGBUILD .SRCINFO + git commit -m "chore: release $VERSION"