-
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* universal binary support * update action workflow
- Loading branch information
Showing
4 changed files
with
25 additions
and
20 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,10 +15,10 @@ jobs: | |
- name: Verify | ||
run: emcc -v | ||
- name: Checkout | ||
uses: actions/checkout@v2.0.0 | ||
uses: actions/checkout@v3.0.0 | ||
- run: git fetch --prune --unshallow | ||
- run: make MODE=release dome.html ARCH=web | ||
- uses: actions/upload-artifact@v2 | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: dome-web | ||
path: | | ||
|
@@ -31,13 +31,13 @@ jobs: | |
static: [1, 0] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2.0.0 | ||
uses: actions/checkout@v3.0.0 | ||
- run: git fetch --prune --unshallow | ||
- run: sudo apt-get update | ||
- run: sudo apt-get install build-essential mercurial make cmake autoconf automake libtool libasound2-dev libpulse-dev libaudio-dev libx11-dev libxext-dev libxrandr-dev libxcursor-dev libxi-dev libxinerama-dev libxxf86vm-dev libxss-dev libgl1-mesa-dev libdbus-1-dev libudev-dev libgles2-mesa-dev libegl1-mesa-dev libibus-1.0-dev fcitx-libs-dev libsamplerate0-dev libsndio-dev libwayland-dev libxkbcommon-dev | ||
- name: Cache dependancies | ||
if: ${{matrix.static == 1}} | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
./lib/SDL* | ||
|
@@ -49,15 +49,15 @@ jobs: | |
- run: ./scripts/setup_static_linux_sdl.sh | ||
if: ${{matrix.static == 1}} | ||
- run: make MODE=release STATIC=${{matrix.static}} | ||
- uses: actions/upload-artifact@v2 | ||
- uses: actions/upload-artifact@v3 | ||
if: ${{matrix.static == 1}} | ||
with: | ||
name: dome-linux-x64 | ||
path: | | ||
dome | ||
main.wren | ||
- uses: actions/upload-artifact@v2 | ||
- uses: actions/upload-artifact@v3 | ||
if: ${{matrix.static == 0}} | ||
with: | ||
name: dome-linux-x64-shared | ||
|
@@ -69,10 +69,13 @@ jobs: | |
runs-on: macOS-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/[email protected] | ||
- run: sudo xcode-select -switch /Applications/Xcode_14.2.app/Contents/Developer | ||
uses: actions/[email protected] | ||
- uses: maxim-lobanov/setup-xcode@v1 | ||
with: | ||
xcode-version: '14.2' | ||
# - run: sudo xcode-select -switch /Applications/Xcode_14.2.app/Contents/Developer | ||
- name: Cache dependancies | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
./lib/SDL* | ||
|
@@ -81,9 +84,9 @@ jobs: | |
key: ${{ runner.os }}-${{ hashFiles('./scripts/vars.sh') }}-sdl | ||
- run: ./scripts/setup_static_mac_sdl.sh | ||
- run: make MIN_MAC_VERSION=10.12 STATIC=1 | ||
- uses: actions/upload-artifact@v2 | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: dome-macosx-x64 | ||
name: dome-macosx-all | ||
path: | | ||
dome | ||
main.wren | ||
|
@@ -96,7 +99,7 @@ jobs: | |
run: | ||
shell: msys2 {0} | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
- uses: msys2/setup-msys2@v2 | ||
with: | ||
msystem: ${{ matrix.msystem }} | ||
|
@@ -112,14 +115,14 @@ jobs: | |
- run: git fetch --prune --unshallow | ||
- run: gcc -v | ||
- run: "make STATIC=1 TARGET_NAME=dome CC=gcc" | ||
- uses: actions/upload-artifact@v2 | ||
- uses: actions/upload-artifact@v3 | ||
if: ${{ (matrix.msystem == 'MINGW32') }} | ||
with: | ||
name: dome-windows-x32 | ||
path: | | ||
dome.exe | ||
main.wren | ||
- uses: actions/upload-artifact@v2 | ||
- uses: actions/upload-artifact@v3 | ||
if: ${{ (matrix.msystem == 'MINGW64') }} | ||
with: | ||
name: dome-windows-x64 | ||
|
@@ -148,7 +151,7 @@ jobs: | |
args: zip -qq -r dome-windows-x32.zip dome-windows-x32 | ||
- uses: montudor/[email protected] | ||
with: | ||
args: zip -qq -r dome-macosx-x64.zip dome-macosx-x64 | ||
args: zip -qq -r dome-macosx-all.zip dome-macosx-all | ||
- uses: montudor/[email protected] | ||
with: | ||
args: zip -qq -r dome-web.zip dome-web | ||
|
@@ -195,8 +198,8 @@ jobs: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
upload_url: ${{ github.event.release.upload_url }} | ||
asset_path: ./dome-macosx-x64.zip | ||
asset_name: dome-${{github.event.release.tag_name}}-macosx-x64.zip | ||
asset_path: ./dome-macosx-all.zip | ||
asset_name: dome-${{github.event.release.tag_name}}-macosx-all.zip | ||
asset_content_type: application/zip | ||
- name: Upload Web Engine | ||
uses: actions/upload-release-asset@v1 | ||
|
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
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
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