Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
tsl0922 committed Aug 20, 2024
1 parent bcc61a1 commit d3f8501
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-22.04
name: Ubuntu
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install dependencies
Expand All @@ -34,7 +34,7 @@ jobs:
chmod +x linuxdeploy-x86_64.AppImage linuxdeploy-plugin-gtk.sh
./linuxdeploy-x86_64.AppImage --appdir $(pwd)/AppDir --plugin gtk --output appimage
mv ImPlay*.AppImage $(echo ImPlay-*.deb | sed 's/deb/AppImage/')
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: ImPlay-linux
path: |
Expand All @@ -44,7 +44,7 @@ jobs:
runs-on: macos-12
name: macOS
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install dependencies
Expand All @@ -60,7 +60,7 @@ jobs:
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=RELEASE -DUSE_PATCHED_GLFW=ON -DCREATE_PACKAGE=ON -G Ninja ..
cmake --build . --target package
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: ImPlay-macOS
path: build/ImPlay-*.dmg
Expand All @@ -72,7 +72,7 @@ jobs:
run: |
git config --global core.autocrlf false
git config --global core.eol lf
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: msys2/setup-msys2@v2
Expand All @@ -93,7 +93,7 @@ jobs:
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=RELEASE -DUSE_PATCHED_GLFW=ON -DUSE_OPENGL_ES3=ON -DCREATE_PACKAGE=ON -G Ninja ..
cmake --build . --target package
- uses: actions/upload-artifact@v3
- uses: actions/upload-artifact@v4
with:
name: ImPlay-win64
path: |
Expand All @@ -104,8 +104,8 @@ jobs:
runs-on: ubuntu-latest
if: ${{ github.ref == 'refs/heads/main' }}
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
- run: |
for f in ImPlay-*/*; do
mv "$f" "${f/ImPlay-*-/ImPlay-dev-}"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jobs:
needs: [build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
- uses: ncipollo/release-action@v1
with:
commit: ${{ github.sha }}
Expand Down

0 comments on commit d3f8501

Please sign in to comment.