mirror of
https://github.com/geode-sdk/geode.git
synced 2024-11-14 19:15:05 -05:00
add windows installer actions
This commit is contained in:
parent
1c11caa90b
commit
7ef551c962
1 changed files with 31 additions and 9 deletions
40
.github/workflows/build.yml
vendored
40
.github/workflows/build.yml
vendored
|
@ -28,7 +28,7 @@ jobs:
|
|||
extra_flags: "-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=Debug -DGEODE_DEBUG=On -DCMAKE_OSX_DEPLOYMENT_TARGET=10.13"
|
||||
out_paths: './bin/nightly/Geode.dylib ./bin/nightly/GeodeBootstrapper.dylib ./loader/include/link/libfmod.dylib'
|
||||
cli_cmd: 'chmod +x $GITHUB_WORKSPACE/cli/geode'
|
||||
|
||||
|
||||
name: ${{ matrix.config.name }}
|
||||
runs-on: ${{ matrix.config.os }}
|
||||
|
||||
|
@ -56,11 +56,11 @@ jobs:
|
|||
tarBall: false
|
||||
zipBall: false
|
||||
out-file-path: "cli"
|
||||
|
||||
|
||||
- name: Unzip CLI
|
||||
run: |
|
||||
7z x "${{ github.workspace }}/cli/*-${{ matrix.config.os_identifier }}.zip" -o"${{ github.workspace }}/cli"
|
||||
|
||||
|
||||
- name: Add CLI to Path
|
||||
run: |
|
||||
${{ matrix.config.cli_cmd }}
|
||||
|
@ -86,13 +86,13 @@ jobs:
|
|||
run: |
|
||||
mkdir ./out
|
||||
mv ${{ matrix.config.out_paths }} ./out
|
||||
|
||||
|
||||
- name: Get version
|
||||
uses: juliangruber/read-file-action@v1.1.6
|
||||
with:
|
||||
path: ${{ github.workspace }}/VERSION
|
||||
id: version
|
||||
|
||||
|
||||
- name: Trim whitespace from version
|
||||
shell: bash
|
||||
run: echo "VERSION_TRIM=$(echo '${{ steps.version.outputs.content }}' | xargs)" >> $GITHUB_ENV
|
||||
|
@ -112,13 +112,13 @@ jobs:
|
|||
with:
|
||||
name: geode-v${{ env.VERSION_TRIM }}-${{ matrix.config.os_identifier }}
|
||||
path: ./out
|
||||
|
||||
|
||||
- name: Package MacOS
|
||||
run: |
|
||||
cp -R ./bin/nightly/resources ./out/resources
|
||||
./installer/mac/package.sh ./out ./out/geode-installer-v${{ env.VERSION_TRIM }}-${{ matrix.config.os_identifier }}.pkg
|
||||
if: matrix.config.os_identifier == 'mac'
|
||||
|
||||
|
||||
- name: Publish MacOS Installer
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
|
@ -126,19 +126,41 @@ jobs:
|
|||
path: ./out/geode-installer-v${{ env.VERSION_TRIM }}-${{ matrix.config.os_identifier }}.pkg
|
||||
if: matrix.config.os_identifier == 'mac'
|
||||
|
||||
- name: Install NSIS
|
||||
run: |
|
||||
iwr -useb get.scoop.sh -outfile 'install.ps1'
|
||||
.\install.ps1 -RunAsAdmin
|
||||
scoop update
|
||||
scoop bucket add extras
|
||||
scoop install nsis
|
||||
if: matrix.config.os_identifier == 'win'
|
||||
|
||||
- name: Package Windows
|
||||
run: |
|
||||
cd ./installer/windows
|
||||
makensis -WX -V3 installer.nsi
|
||||
if: matrix.config.os_identifier == 'win'
|
||||
|
||||
- name: Publish Windows Installer
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: GeodeInstaller_v${{ env.VERSION_TRIM }}-${{ matrix.config.os_identifier }}
|
||||
path: ./installer/windows/GeodeInstaller.exe
|
||||
if: matrix.config.os_identifier == 'win'
|
||||
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
needs: build
|
||||
if: github.ref == 'refs/heads/main'
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
|
||||
- name: Get version
|
||||
uses: juliangruber/read-file-action@v1.1.6
|
||||
with:
|
||||
path: ${{ github.workspace }}/VERSION
|
||||
id: version
|
||||
|
||||
|
||||
- name: Trim whitespace from version
|
||||
shell: bash
|
||||
run: echo "VERSION_TRIM=$(echo '${{ steps.version.outputs.content }}' | xargs)" >> $GITHUB_ENV
|
||||
|
|
Loading…
Reference in a new issue