workflow optimisation
This commit is contained in:
@@ -8,14 +8,12 @@ jobs:
|
||||
name: Linux Build
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Pulling the new commit
|
||||
- name: Pulling the source
|
||||
uses: actions/checkout@v2
|
||||
- name: Setting up Haxe
|
||||
uses: krdlab/setup-haxe@v1
|
||||
with:
|
||||
haxe-version: 4.2.5
|
||||
- name: Show current dir
|
||||
run: pwd
|
||||
- name: Cache Haxelibs and build
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
@@ -38,17 +36,17 @@ jobs:
|
||||
- name: Building the game
|
||||
run: |
|
||||
haxelib run lime build linux
|
||||
- name: Artifact upload (entire build)
|
||||
- name: Uploading artifact (entire build)
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: Codename Engine
|
||||
path: export/release/linux/bin
|
||||
- name: Artifact upload (executable)
|
||||
- name: Uploading artifact (executable)
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: Update-Linux
|
||||
path: export/release/linux/bin/CodenameEngine
|
||||
- name: Clear cache
|
||||
- name: Clearing already existing cache
|
||||
uses: actions/github-script@v6
|
||||
with:
|
||||
script: |
|
||||
@@ -67,7 +65,7 @@ jobs:
|
||||
console.log("Cache cleared.")
|
||||
}
|
||||
}
|
||||
- name: Cache... again
|
||||
- name: Uploading new cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
# caching again since for some reason it doesnt work with the first post cache shit
|
||||
|
||||
@@ -14,8 +14,6 @@ jobs:
|
||||
uses: krdlab/setup-haxe@v1
|
||||
with:
|
||||
haxe-version: 4.2.5
|
||||
- name: Show current dir
|
||||
run: pwd
|
||||
- name: Cache Haxelibs and build
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
@@ -38,17 +36,17 @@ jobs:
|
||||
- name: Building the game
|
||||
run: |
|
||||
haxelib run lime build mac
|
||||
- name: Artifact upload (entire build)
|
||||
- name: Uploading artifact (entire build)
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: Codename Engine
|
||||
path: export/release/macos/bin
|
||||
- name: Artifact upload (executable)
|
||||
- name: Uploading artifact (executable)
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: Update-Mac
|
||||
path: export/release/macos/bin/CodenameEngine
|
||||
- name: Clear cache
|
||||
- name: Clearing already existing cache
|
||||
uses: actions/github-script@v6
|
||||
with:
|
||||
script: |
|
||||
@@ -67,7 +65,7 @@ jobs:
|
||||
console.log("Cache cleared.")
|
||||
}
|
||||
}
|
||||
- name: Cache... again
|
||||
- name: Uploading new cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
# caching again since for some reason it doesnt work with the first post cache shit
|
||||
|
||||
@@ -14,8 +14,6 @@ jobs:
|
||||
uses: krdlab/setup-haxe@v1
|
||||
with:
|
||||
haxe-version: 4.2.5
|
||||
- name: Show current dir
|
||||
run: pwd
|
||||
- name: Cache Haxelibs and build
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
@@ -34,17 +32,17 @@ jobs:
|
||||
- name: Building the game
|
||||
run: |
|
||||
haxelib run lime build windows
|
||||
- name: Artifact upload (entire build)
|
||||
- name: Uploading artifact (entire build)
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: Codename Engine
|
||||
path: export/release/windows/bin
|
||||
- name: Artifact upload (executable)
|
||||
- name: Uploading artifact (executable)
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: Update-Windows
|
||||
path: export/release/windows/bin/CodenameEngine.exe
|
||||
- name: Clear cache
|
||||
- name: Clearing already existing cache
|
||||
uses: actions/github-script@v6
|
||||
with:
|
||||
script: |
|
||||
@@ -63,7 +61,7 @@ jobs:
|
||||
console.log("Cache cleared.")
|
||||
}
|
||||
}
|
||||
- name: Cache... again
|
||||
- name: Uploading new cache
|
||||
uses: actions/cache@v3
|
||||
with:
|
||||
# caching again since for some reason it doesnt work with the first post cache shit
|
||||
|
||||
@@ -36,7 +36,9 @@ Also, `lime test windows` uses the source assets folder instead of the export on
|
||||
5. This is what your Installation details panel should look like. Once correct, press "Install".
|
||||
- ⚠ This will download around 1.07 GB of data from the internet, and will require around 5.5 GB of available space on your computer.
|
||||
|
||||

|
||||
<p align="center">
|
||||
<img src="https://github.com/YoshiCrafter29/CodenameEngine/blob/main/art/github/windows-installation-details.png?raw=true" />
|
||||
</p>
|
||||
|
||||
6. Once the installation is done, close Visual Studio Installer.
|
||||
7. Download and install [`git-scm`](https://git-scm.com/download/win).
|
||||
@@ -55,11 +57,9 @@ Also, `lime test windows` uses the source assets folder instead of the export on
|
||||
3. Open a terminal in the Codename Engine source folder, and run `update.sh`.
|
||||
4. Once the libraries are installed, run `haxelib run lime test linux` to compile and launch the game (may take a long time)
|
||||
- ℹ You can run `haxelib run lime setup` to make the lime command global, allowing you to execute `lime test linux` directly.
|
||||
|
||||
|
||||
</details>
|
||||
<details>
|
||||
<summary><h4>MacOS</h4></summary>
|
||||
<summary>MacOS</summary>
|
||||
|
||||
##### Requires testing
|
||||
1. Install `Xcode` to allow C++ app building.
|
||||
|
||||
Reference in New Issue
Block a user