|
1 | | -name: htop AppImage |
| 1 | +name: Appimage |
2 | 2 | concurrency: |
3 | 3 | group: build-${{ github.ref }} |
4 | 4 | cancel-in-progress: true |
5 | 5 |
|
6 | 6 | on: |
7 | 7 | schedule: |
8 | | - - cron: "0 16 1/14 * *" |
| 8 | + - cron: "0 16 1/21 * *" |
9 | 9 | workflow_dispatch: |
10 | | - |
11 | 10 | jobs: |
12 | 11 | build: |
13 | | - runs-on: ubuntu-latest |
| 12 | + name: "${{ matrix.name }} (${{ matrix.arch }})" |
| 13 | + runs-on: ${{ matrix.runs-on }} |
| 14 | + strategy: |
| 15 | + matrix: |
| 16 | + include: |
| 17 | + - runs-on: ubuntu-latest |
| 18 | + name: "Build AppImage" |
| 19 | + arch: x86_64 |
| 20 | +# - runs-on: ubuntu-24.04-arm |
| 21 | +# name: "Build AppImage" |
| 22 | +# arch: aarch64 |
14 | 23 | steps: |
15 | 24 | - uses: actions/checkout@v4 |
16 | 25 |
|
17 | | - - name: build |
| 26 | + - name: Make AppImage |
18 | 27 | run: | |
19 | 28 | sudo apt update |
20 | 29 | sudo apt install libsensors-dev libdrm-dev libudev-dev libncursesw5-dev \ |
21 | 30 | file libcap-dev ninja-build autotools-dev autoconf automake \ |
22 | 31 | build-essential meson desktop-file-utils zsync |
23 | 32 |
|
24 | | - chmod a+x ./*-appimage.sh && ./*-appimage.sh |
| 33 | + chmod +x ./*-appimage.sh |
| 34 | + ./*-appimage.sh |
25 | 35 | mkdir dist |
26 | 36 | mv *.AppImage* dist/ |
27 | 37 |
|
28 | 38 | - name: Upload artifact |
29 | | - uses: actions/upload-artifact@v4 |
| 39 | + uses: actions/upload-artifact@v4.6.2 |
30 | 40 | with: |
31 | | - name: htop.AppImage |
| 41 | + name: AppImage-${{ matrix.arch }} |
32 | 42 | path: 'dist' |
33 | | - |
| 43 | + |
| 44 | + - name: Upload version file |
| 45 | + |
| 46 | + with: |
| 47 | + name: version |
| 48 | + path: ~/version |
| 49 | + overwrite: true |
| 50 | + |
34 | 51 | release: |
35 | 52 | needs: [build] |
36 | 53 | permissions: write-all |
37 | 54 | runs-on: ubuntu-latest |
38 | 55 |
|
39 | 56 | steps: |
40 | | - - uses: actions/download-artifact@v4 |
| 57 | + - uses: actions/download-artifact@v4.3.0 |
41 | 58 | with: |
42 | | - name: htop.AppImage |
| 59 | + name: AppImage-x86_64 |
| 60 | + |
| 61 | +# - uses: actions/[email protected] |
| 62 | +# with: |
| 63 | +# name: AppImage-aarch64 |
43 | 64 |
|
44 | | - - name: release |
45 | | - uses: marvinpinto/action-automatic-releases@latest |
| 65 | + |
46 | 66 | with: |
47 | | - title: Continuous build |
48 | | - automatic_release_tag: continuous |
| 67 | + name: version |
| 68 | + |
| 69 | + - name: Read version and Get date |
| 70 | + run: | |
| 71 | + echo "VERSION=$(cat version)" >> "${GITHUB_ENV}" |
| 72 | + echo "DATE=$(date +'%Y-%m-%d_%s')" >> "${GITHUB_ENV}" |
| 73 | +
|
| 74 | + - name: Release Artifacts |
| 75 | + |
| 76 | + with: |
| 77 | + name: "htop: ${{ env.VERSION }}" |
| 78 | + tag_name: "${{ env.VERSION }}@${{ env.DATE }}" |
49 | 79 | prerelease: false |
50 | 80 | draft: false |
| 81 | + generate_release_notes: false |
| 82 | + make_latest: true |
51 | 83 | files: | |
52 | 84 | *.AppImage* |
53 | | - repo_token: ${{ secrets.GITHUB_TOKEN }} |
| 85 | +
|
| 86 | + - uses: actions/checkout@v4 |
| 87 | + - name: Update LATEST_VERSION |
| 88 | + run: | |
| 89 | + echo "${{ env.VERSION }}" > ./LATEST_VERSION |
| 90 | + git config user.name "github-actions[bot]" |
| 91 | + git config user.email "github-actions[bot]@users.noreply.github.com" |
| 92 | + git add ./LATEST_VERSION |
| 93 | + git commit -m 'bump `LATEST_VERSION` [skip ci]' |
| 94 | + git push |
0 commit comments