Skip to content

Commit

Permalink
add:test release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Dozingfiretruck committed Aug 28, 2024
1 parent a7d22e6 commit 29ced5a
Showing 1 changed file with 30 additions and 4 deletions.
34 changes: 30 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,43 @@ jobs:
draft: false
prerelease: false

- name: test txt
run: echo ${{ github.sha }} > test.txt

macos:
needs: release
strategy:
matrix:
os: [macos-latest]
arch: [arm64]
runs-on: ${{ matrix.os }}
concurrency:
group: ${{ matrix.os }}-${{ matrix.arch }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
- name: prepare software
run: |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
brew install make sdl2 xmake
xmake update
- name: build
run: |
xrepo update-repo
xmake -v -y
cp build/macosx/${{ matrix.arch }}/release/nes nes-macos-${{ matrix.arch }}.app
- uses: actions/upload-artifact@v4
with:
name: nes-macos-${{ matrix.arch }}.app
path: nes-macos-${{ matrix.arch }}.app

- name: Publish file to release
uses: svenstaro/upload-release-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file_glob: true
file: ./test.txt
file: nes-macos-${{ matrix.arch }}.app
tag: ${{ github.ref }}
overwrite: true

Expand Down

0 comments on commit 29ced5a

Please sign in to comment.