-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
59 additions
and
5 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: Build Arch Linux Package | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
|
||
permissions: | ||
contents: write # 确保具有写权限 | ||
|
||
|
||
env: | ||
TAG_NAME: "auto" | ||
SOFTWARE_NAME: "lfy" | ||
|
||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
container: | ||
image: archlinux:latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Update system and install dependencies | ||
run: | | ||
pacman -Syu --noconfirm | ||
pacman -S --needed --noconfirm base-devel git | ||
- name: Install any other required packages | ||
run: | | ||
# 根据需要替换这里的命令 | ||
pacman -S --noconfirm meson libadwaita python-gobject python-requests make python-pyqt6 appstream-glib | ||
- name: Build package | ||
run: | | ||
make test-aur | ||
make BUILD_TYPE=gtk test-aur | ||
- name: Release | ||
uses: softprops/action-gh-release@v2 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
tag_name: ${{ env.TAG_NAME }} | ||
prerelease: true | ||
draft: false | ||
files: | | ||
dist/* |
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