workflow optimisation
This commit is contained in:
@@ -8,14 +8,12 @@ jobs:
|
|||||||
name: Linux Build
|
name: Linux Build
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Pulling the new commit
|
- name: Pulling the source
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: Setting up Haxe
|
- name: Setting up Haxe
|
||||||
uses: krdlab/setup-haxe@v1
|
uses: krdlab/setup-haxe@v1
|
||||||
with:
|
with:
|
||||||
haxe-version: 4.2.5
|
haxe-version: 4.2.5
|
||||||
- name: Show current dir
|
|
||||||
run: pwd
|
|
||||||
- name: Cache Haxelibs and build
|
- name: Cache Haxelibs and build
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
@@ -38,17 +36,17 @@ jobs:
|
|||||||
- name: Building the game
|
- name: Building the game
|
||||||
run: |
|
run: |
|
||||||
haxelib run lime build linux
|
haxelib run lime build linux
|
||||||
- name: Artifact upload (entire build)
|
- name: Uploading artifact (entire build)
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: Codename Engine
|
name: Codename Engine
|
||||||
path: export/release/linux/bin
|
path: export/release/linux/bin
|
||||||
- name: Artifact upload (executable)
|
- name: Uploading artifact (executable)
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: Update-Linux
|
name: Update-Linux
|
||||||
path: export/release/linux/bin/CodenameEngine
|
path: export/release/linux/bin/CodenameEngine
|
||||||
- name: Clear cache
|
- name: Clearing already existing cache
|
||||||
uses: actions/github-script@v6
|
uses: actions/github-script@v6
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
@@ -67,7 +65,7 @@ jobs:
|
|||||||
console.log("Cache cleared.")
|
console.log("Cache cleared.")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
- name: Cache... again
|
- name: Uploading new cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
# caching again since for some reason it doesnt work with the first post cache shit
|
# 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
|
uses: krdlab/setup-haxe@v1
|
||||||
with:
|
with:
|
||||||
haxe-version: 4.2.5
|
haxe-version: 4.2.5
|
||||||
- name: Show current dir
|
|
||||||
run: pwd
|
|
||||||
- name: Cache Haxelibs and build
|
- name: Cache Haxelibs and build
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
@@ -38,17 +36,17 @@ jobs:
|
|||||||
- name: Building the game
|
- name: Building the game
|
||||||
run: |
|
run: |
|
||||||
haxelib run lime build mac
|
haxelib run lime build mac
|
||||||
- name: Artifact upload (entire build)
|
- name: Uploading artifact (entire build)
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: Codename Engine
|
name: Codename Engine
|
||||||
path: export/release/macos/bin
|
path: export/release/macos/bin
|
||||||
- name: Artifact upload (executable)
|
- name: Uploading artifact (executable)
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: Update-Mac
|
name: Update-Mac
|
||||||
path: export/release/macos/bin/CodenameEngine
|
path: export/release/macos/bin/CodenameEngine
|
||||||
- name: Clear cache
|
- name: Clearing already existing cache
|
||||||
uses: actions/github-script@v6
|
uses: actions/github-script@v6
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
@@ -67,7 +65,7 @@ jobs:
|
|||||||
console.log("Cache cleared.")
|
console.log("Cache cleared.")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
- name: Cache... again
|
- name: Uploading new cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
# caching again since for some reason it doesnt work with the first post cache shit
|
# 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
|
uses: krdlab/setup-haxe@v1
|
||||||
with:
|
with:
|
||||||
haxe-version: 4.2.5
|
haxe-version: 4.2.5
|
||||||
- name: Show current dir
|
|
||||||
run: pwd
|
|
||||||
- name: Cache Haxelibs and build
|
- name: Cache Haxelibs and build
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
@@ -34,17 +32,17 @@ jobs:
|
|||||||
- name: Building the game
|
- name: Building the game
|
||||||
run: |
|
run: |
|
||||||
haxelib run lime build windows
|
haxelib run lime build windows
|
||||||
- name: Artifact upload (entire build)
|
- name: Uploading artifact (entire build)
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: Codename Engine
|
name: Codename Engine
|
||||||
path: export/release/windows/bin
|
path: export/release/windows/bin
|
||||||
- name: Artifact upload (executable)
|
- name: Uploading artifact (executable)
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: Update-Windows
|
name: Update-Windows
|
||||||
path: export/release/windows/bin/CodenameEngine.exe
|
path: export/release/windows/bin/CodenameEngine.exe
|
||||||
- name: Clear cache
|
- name: Clearing already existing cache
|
||||||
uses: actions/github-script@v6
|
uses: actions/github-script@v6
|
||||||
with:
|
with:
|
||||||
script: |
|
script: |
|
||||||
@@ -63,7 +61,7 @@ jobs:
|
|||||||
console.log("Cache cleared.")
|
console.log("Cache cleared.")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
- name: Cache... again
|
- name: Uploading new cache
|
||||||
uses: actions/cache@v3
|
uses: actions/cache@v3
|
||||||
with:
|
with:
|
||||||
# caching again since for some reason it doesnt work with the first post cache shit
|
# 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".
|
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.
|
- ⚠ 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.
|
6. Once the installation is done, close Visual Studio Installer.
|
||||||
7. Download and install [`git-scm`](https://git-scm.com/download/win).
|
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`.
|
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)
|
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.
|
- ℹ You can run `haxelib run lime setup` to make the lime command global, allowing you to execute `lime test linux` directly.
|
||||||
|
|
||||||
|
|
||||||
</details>
|
</details>
|
||||||
<details>
|
<details>
|
||||||
<summary><h4>MacOS</h4></summary>
|
<summary>MacOS</summary>
|
||||||
|
|
||||||
##### Requires testing
|
##### Requires testing
|
||||||
1. Install `Xcode` to allow C++ app building.
|
1. Install `Xcode` to allow C++ app building.
|
||||||
|
|||||||
Reference in New Issue
Block a user