Deploy #43
This file contains 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
name: Deploy | |
on: workflow_dispatch | |
jobs: | |
windows: | |
runs-on: windows-latest | |
steps: | |
- uses: lukka/get-cmake@latest | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: build | |
run: | | |
python3 fips set local on | |
python3 fips build win64-vstudio-release | |
md5sum fips-files/deploy/sokol-tools/win64-vstudio-release/sokol-shdc.exe | |
- name: upload | |
uses: actions/upload-artifact@v4 | |
with: | |
name: win64-vstudio-release | |
path: fips-files/deploy/sokol-tools/win64-vstudio-release/sokol-shdc.exe | |
retention-days: 1 | |
mac_intel: | |
runs-on: macos-latest | |
steps: | |
- uses: lukka/get-cmake@latest | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: build | |
run: | | |
python3 fips set local on | |
python3 fips build osx-x64-ninja-release | |
md5 fips-files/deploy/sokol-tools/osx-x64-ninja-release/sokol-shdc | |
- name: upload | |
uses: actions/upload-artifact@v4 | |
with: | |
name: osx-x64-ninja-release | |
path: fips-files/deploy/sokol-tools/osx-x64-ninja-release/sokol-shdc | |
retention-days: 1 | |
mac_arm: | |
runs-on: macos-latest | |
steps: | |
- uses: lukka/get-cmake@latest | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: build | |
run: | | |
python3 fips set local on | |
python3 fips build osx-arm64-ninja-release | |
md5 fips-files/deploy/sokol-tools/osx-arm64-ninja-release/sokol-shdc | |
- name: upload | |
uses: actions/upload-artifact@v4 | |
with: | |
name: osx-arm64-ninja-release | |
path: fips-files/deploy/sokol-tools/osx-arm64-ninja-release/sokol-shdc | |
retention-days: 1 | |
linux: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: build | |
run: | | |
./build_docker.sh | |
md5sum sokol-shdc | |
- name: upload | |
uses: actions/upload-artifact@v4 | |
with: | |
name: linux-ninja-release | |
path: sokol-shdc | |
retention-days: 1 | |
deploy: | |
needs: [windows, mac_intel, mac_arm, linux] | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
repository: floooh/sokol-tools-bin | |
ssh-key: ${{ secrets.GHACTIONS_PUSH }} | |
- uses: actions/download-artifact@v4 | |
with: | |
name: win64-vstudio-release | |
path: bin/win32 | |
- uses: actions/download-artifact@v4 | |
with: | |
name: osx-x64-ninja-release | |
path: bin/osx | |
- uses: actions/download-artifact@v4 | |
with: | |
name: osx-arm64-ninja-release | |
path: bin/osx_arm64 | |
- uses: actions/download-artifact@v4 | |
with: | |
name: linux-ninja-release | |
path: bin/linux | |
- name: "commit and push" | |
run: | | |
md5sum bin/win32/sokol-shdc.exe | |
md5sum bin/osx/sokol-shdc | |
md5sum bin/osx_arm64/sokol-shdc | |
md5sum bin/linux/sokol-shdc | |
chmod a+x bin/osx/sokol-shdc bin/osx_arm64/sokol-shdc bin/linux/sokol-shdc | |
git config user.email "none" | |
git config user.name "GH Action" | |
git add . | |
git commit -m "updated (${{ github.run_number }})" | |
git push |