Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
yuhldr committed Nov 27, 2024
1 parent 276c489 commit c65b4d0
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 5 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/archlinux.yml
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/*
10 changes: 5 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
name: AutoPkg

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
# on:
# push:
# branches: [ "main" ]
# pull_request:
# branches: [ "main" ]


permissions:
Expand Down

0 comments on commit c65b4d0

Please sign in to comment.