ci: bump {upload,download}-artifact to v4 #62
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: push | |
| name: build | |
| jobs: | |
| build-linux-aarch64: | |
| name: build on Debian aarch64 | |
| runs-on: ubuntu-22.04-arm | |
| steps: | |
| - uses: actions/checkout@master | |
| - run: bin/build-linux-aarch64.sh | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: linux-aarch64 | |
| path: artifacts/linux-aarch64 | |
| build-linux-x86-64: | |
| name: build on Ubuntu x86-64 | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@master | |
| - run: bin/build-linux-x86-64.sh | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: linux-x86-64 | |
| path: artifacts/linux-x86-64 | |
| build-macos-aarch64: | |
| name: build on macOS aarch64 | |
| runs-on: macOS-13-xlarge | |
| steps: | |
| - uses: actions/checkout@master | |
| - run: arch -arm64 bin/build-macos-aarch64.sh | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: macos-aarch64 | |
| path: artifacts/macos-aarch64 | |
| build-macos-x86-64: | |
| name: build on macOS x86-64 | |
| runs-on: macOS-13 | |
| steps: | |
| - uses: actions/checkout@master | |
| - run: bin/build-macos-x86-64.sh | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: macos-x86-64 | |
| path: artifacts/macos-x86-64 | |
| build-win32-i386: | |
| name: build on Windows i386 | |
| runs-on: windows-2019 | |
| steps: | |
| - uses: actions/checkout@master | |
| - uses: ilammy/msvc-dev-cmd@v1 | |
| with: | |
| arch: x86 | |
| - run: bin/build-win32-i386.cmd | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: win32-i386 | |
| path: artifacts/win32-i386 | |
| build-win32-x86-64: | |
| name: build on Windows x86-64 | |
| runs-on: windows-2019 | |
| steps: | |
| - uses: actions/checkout@master | |
| - uses: ilammy/msvc-dev-cmd@v1 | |
| with: | |
| arch: x64 | |
| - run: bin/build-win32-x86-64.cmd | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: win32-x86-64 | |
| path: artifacts/win32-x86-64 | |
| deploy: | |
| name: deploy | |
| needs: | |
| - build-linux-aarch64 | |
| - build-linux-x86-64 | |
| - build-macos-aarch64 | |
| - build-macos-x86-64 | |
| - build-win32-i386 | |
| - build-win32-x86-64 | |
| runs-on: ubuntu-22.04 | |
| steps: | |
| - uses: actions/checkout@master | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: linux-aarch64 | |
| path: artifacts/linux-aarch64 | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: linux-x86-64 | |
| path: artifacts/linux-x86-64 | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: macos-aarch64 | |
| path: artifacts/macos-aarch64 | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: macos-x86-64 | |
| path: artifacts/macos-x86-64 | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: win32-i386 | |
| path: artifacts/win32-i386 | |
| - uses: actions/download-artifact@v4 | |
| with: | |
| name: win32-x86-64 | |
| path: artifacts/win32-x86-64 | |
| - run: bin/deploy.sh | |
| if: >- | |
| startsWith(github.ref, 'refs/tags/v') | |
| env: | |
| DEPLOY_HOST: ${{ secrets.DEPLOY_HOST }} | |
| DEPLOY_PORT: ${{ secrets.DEPLOY_PORT }} | |
| DEPLOY_USER: ${{ secrets.DEPLOY_USER }} | |
| DEPLOY_KEY_PASSPHRASE: ${{ secrets.DEPLOY_KEY_PASSPHRASE }} |