Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 6e37d5b209 | |||
| 8403e67ba4 | |||
| d97dc941bb | |||
| 3ea08997ae | |||
| c5f4348f47 |
21
LICENSE
Normal file
21
LICENSE
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2025 Cory Sanin
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
12
README.md
12
README.md
@@ -7,11 +7,13 @@ Gitea action for building pacman packages. Uses [Archery](https://git.sanin.dev/
|
||||
See [action.yml](action.yml).
|
||||
|
||||
```
|
||||
- uses: https://git.sanin.dev/packages_infra/makepkg-build-action@v1
|
||||
- uses: https://git.sanin.dev/packages_infra/makepkg-build-action@v1-artix
|
||||
with:
|
||||
# Which distro to use for building. This will affect what repos are used for satisfying dependencies.
|
||||
# Can be artix or arch
|
||||
distro: 'artix'
|
||||
# Which repos to use. Can be stable, testing, staging
|
||||
deps: 'stable'
|
||||
|
||||
# Which tier of repos to use. 0 for system, 1 for world, etc.
|
||||
tier: '1'
|
||||
|
||||
# Username intended to be used for publishing artifacts. Wihtout a proper post-entrypoint.sh script to
|
||||
# utilize it, this input does nothing.
|
||||
@@ -22,6 +24,8 @@ See [action.yml](action.yml).
|
||||
token: 'anonymous'
|
||||
```
|
||||
|
||||
Select the desired distro to build in by appending `-artix` or `-arch` after the version number.
|
||||
|
||||
## Publishing
|
||||
|
||||
See [publish.yml](https://git.sanin.dev/packages_infra/package_template/src/branch/master/.gitea/workflows/publish.yml).
|
||||
|
||||
13
action.yml
13
action.yml
@@ -8,16 +8,21 @@ inputs:
|
||||
token:
|
||||
description: 'Gitea PAT'
|
||||
default: ''
|
||||
distro:
|
||||
description: Which distro to use for building, arch or artix
|
||||
default: 'artix'
|
||||
deps:
|
||||
description: 'which repos to enable'
|
||||
default: 'stable'
|
||||
tier:
|
||||
description: 'which tier of repos to enable'
|
||||
default: '1'
|
||||
|
||||
runs:
|
||||
using: 'docker'
|
||||
image: 'docker://corysanin/archery:${{ inputs.distro }}'
|
||||
image: 'docker://corysanin/archery:artix'
|
||||
env:
|
||||
REPO: .
|
||||
WORKSPACE: /workspace/${{ GITEA_REPOSITORY }}/
|
||||
DEP: ${{ inputs.deps }}
|
||||
TIER: ${{ inputs.tier }}
|
||||
POST: ${{ inputs.token }}
|
||||
username: ${{ inputs.username }}
|
||||
token: ${{ inputs.token }}
|
||||
|
||||
Reference in New Issue
Block a user