Skip to content

Commit

Permalink
fix github action on pull_request
Browse files Browse the repository at this point in the history
  • Loading branch information
YuriSizuku committed Mar 23, 2023
1 parent a80393a commit fb88f13
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build_android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
run: cd script && bash ./cross_android.sh

- name: prepare to release
if: github.event_name == 'push'
run: cp ./build_android/outputs/apk/release/*.apk onsyuri_${{ github.ref_name }}_android.apk

- name: create release
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/build_linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,17 @@ jobs:
- name: build onsyuri_x86_linux
run: |
cd script
export SKIP_PORTS=yes && USE_STATIC_PORTS=yes && bash ./local_linux32.sh
export SKIP_PORTS=yes && export USE_STATIC_PORTS=yes && bash ./local_linux32.sh
- name: prepare release
if: github.event_name == 'push'
run: |
cd build_linux32
mv onsyuri onsyuri_${{ github.ref_name }}_x86_linux
- name: create release
uses: ncipollo/release-action@v1
if: github.event_name == 'push'
with:
artifacts: "./build_linux32/onsyuri_${{ github.ref_name }}_x86_linux"
allowUpdates: "true"
Expand All @@ -74,15 +76,17 @@ jobs:
- name: build onsyuri_x64_linux
run: |
cd script
export SKIP_PORTS=yes && USE_STATIC_PORTS=yes && bash ./local_linux64.sh
export SKIP_PORTS=yes && export USE_STATIC_PORTS=yes && bash ./local_linux64.sh
- name: prepare release
if: github.event_name == 'push'
run: |
cd build_linux64
mv onsyuri onsyuri_${{ github.ref_name }}_x64_linux
- name: create release
uses: ncipollo/release-action@v1
if: github.event_name == 'push'
with:
artifacts: "./build_linux64/onsyuri_${{ github.ref_name }}_x64_linux"
allowUpdates: "true"
Expand Down Expand Up @@ -111,12 +115,14 @@ jobs:
export SKIP_PORTS=yes && bash ./cross_linuxa32.sh
- name: prepare release
if: github.event_name == 'push'
run: |
cd build_linuxa32
mv onsyuri onsyuri_${{ github.ref_name }}_arm32_linux
- name: create release
uses: ncipollo/release-action@v1
if: github.event_name == 'push'
with:
artifacts: "./build_linuxa32/onsyuri_${{ github.ref_name }}_arm32_linux"
allowUpdates: "true"
Expand Down Expand Up @@ -145,6 +151,7 @@ jobs:
export SKIP_PORTS=yes && bash ./cross_linuxa64.sh
- name: prepare release
if: github.event_name == 'push'
run: |
cd build_linuxa64
mv onsyuri onsyuri_${{ github.ref_name }}_arm64_linux
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build_web.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
run: cd script && export EMCSDK=${{ env.EMCSDK }} && bash ./cross_web.sh

- name: prepare release
if: github.event_name == 'push'
run: |
cd build_web
mkdir ${{ env.BUILD_NAME }}
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/build_win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,14 @@ jobs:
export SKIP_PORTS=yes && bash ./cross_mingw32.sh
- name: prepare release
if: github.event_name == 'push'
run: |
cd build_mingw32
mv onsyuri.exe onsyuri_${{ github.ref_name }}_x86_win.exe
- name: create release
uses: ncipollo/release-action@v1
if: github.event_name == 'push'
with:
artifacts: "./build_mingw32/onsyuri_${{ github.ref_name }}_x86_win.exe"
allowUpdates: "true"
Expand Down Expand Up @@ -82,6 +84,7 @@ jobs:
export SKIP_PORTS=yes && bash ./cross_mingw64.sh
- name: prepare release
if: github.event_name == 'push'
run: |
cd build_mingw64
mv onsyuri.exe onsyuri_${{ github.ref_name }}_x64_win.exe
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ New features :
- platform
- [x] windows
- [x] x86, x64 (local or cross compile by mingw, static link)
- [x] amd64, arm64 (local msvc, vcpkg, contributed by [ryank231231](https://github.com/YuriSizuku/OnscripterYuri/pull/3))
- [x] lua script and animation
- [x] video by system player
- [x] linux
Expand Down Expand Up @@ -322,4 +323,4 @@ sudo apt-get install qemu-user-static binfmt-support
## 5. Todo
- ~~video support (future plan)~~ partly finish by invoke system player
- web preloading (future plan)
- ~~web preloading (future plan)~~ might not need ? lazyload partly solved

0 comments on commit fb88f13

Please sign in to comment.