├── entrypoint.sh ├── Dockerfile ├── README.md ├── action.yml └── LICENSE /entrypoint.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | git clone "https://aur.archlinux.org/$1.git" 4 | cd "$1" 5 | makepkg -sf --noconfirm 6 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM archlinux:latest 2 | RUN pacman -Syu base-devel git --noconfirm --overwrite '*' && sed -i '/E_ROOT/d' /usr/bin/makepkg 3 | COPY entrypoint.sh /entrypoint.sh 4 | ENTRYPOINT ["/entrypoint.sh"] 5 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # build-aur-action 2 | 3 | ## Example usage 4 | ```yaml 5 | uses: DuckSoft/build-aur-action@master 6 | with: 7 | repo-name: qv2ray-dev-git 8 | ``` 9 | 10 | ## Inputs 11 | ### `repo-name` 12 | **Required** The name of the AUR repo to build. Default `"qv2ray-dev-git"`. 13 | -------------------------------------------------------------------------------- /action.yml: -------------------------------------------------------------------------------- 1 | name: 'Build AUR Package' 2 | description: 'Test build an AUR package in Docker container' 3 | branding: 4 | icon: user-check 5 | color: gray-dark 6 | inputs: 7 | repo-name: 8 | description: 'AUR repository name to build' 9 | required: true 10 | default: 'qv2ray-dev-git' 11 | runs: 12 | using: 'docker' 13 | image: 'Dockerfile' 14 | args: 15 | - ${{ inputs.repo-name }} 16 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 GitHub Actions 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | --------------------------------------------------------------------------------