Skip to content

Commit

Permalink
ci(snap): correct arm64 runner OS (#2217)
Browse files Browse the repository at this point in the history
  • Loading branch information
jnsgruk authored and sxyazi committed Jan 19, 2025
1 parent cd338d0 commit ba15d18
Showing 1 changed file with 28 additions and 18 deletions.
46 changes: 28 additions & 18 deletions .github/workflows/draft.yml
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ jobs:
include:
- os: ubuntu-24.04
arch: amd64
- os: ubuntu-24.04
- os: ubuntu-24.04-arm
arch: arm64
runs-on: ${{ matrix.os }}
steps:
Expand Down Expand Up @@ -200,26 +200,36 @@ jobs:
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
permissions:
contents: write
strategy:
matrix:
include:
- kind: unix
- kind: musl
- kind: snap
runs-on: ubuntu-latest
needs: [build-unix, build-windows, build-musl]
env:
GH_TOKEN: ${{ github.token }}
GH_REPO: ${{ github.repository }}
needs: build-${{ matrix.kind }}
steps:
- uses: actions/download-artifact@v4
with:
merge-multiple: true

- run: |
echo 'NIGHTLY_BODY<<EOF' >> $GITHUB_ENV
echo "From commit: ${GITHUB_SHA:0:8}" >> $GITHUB_ENV
echo "Generated on: $(date -u +"%Y-%m-%d %H:%M") UTC" >> $GITHUB_ENV
echo "EOF" >> $GITHUB_ENV
- name: Nightly
uses: softprops/action-gh-release@v1
with:
tag_name: nightly
prerelease: true
files: |
yazi-*.zip
yazi-*.snap
name: Nightly Build
body: ${{ env.NIGHTLY_BODY }}
- if: matrix.kind == unix
run: |
local rep="- Linux built on $(date -u +"%Y-%m-%d %H:%M") UTC (from commit ${GITHUB_SHA:0:8})"
gh release upload nightly yazi-*-linux-gnu.zip yazi-*-apple-darwin.zip --clobber
local notes="$(gh release view nightly --json body -q ".body" | sed -e "s/^- Linux built.*/$rep/")"
gh release edit nightly --latest --prerelease --target "$GITHUB_SHA" -n "$notes" -t "Nightly Build"
# - name: Nightly
# uses: softprops/action-gh-release@v1
# with:
# tag_name: nightly
# prerelease: true
# files: |
# yazi-*.zip
# yazi-*.snap
# name: Nightly Build
# body: ${{ env.NIGHTLY_BODY }}

0 comments on commit ba15d18

Please sign in to comment.