-
Notifications
You must be signed in to change notification settings - Fork 33
72 lines (69 loc) · 2.99 KB
/
windows_linux.yml
File metadata and controls
72 lines (69 loc) · 2.99 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: CI
on:
#schedule:
# - cron: '0 10 * * * '
# - cron: '0 * * * * '
push:
jobs:
build:
strategy:
matrix:
os: [ubuntu-latest]
fail-fast: true
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: packages
run: sudo apt-get install git g++ imagemagick xclip libsdl1.2-dev libglu1-mesa-dev libgl1-mesa-dev mingw-w64
- name: scripts
run: |
cd scripts/hetuwScripts
sudo apt-get install git g++ make imagemagick xclip libsdl1.2-dev libglu1-mesa-dev libgl1-mesa-dev
chmod +x hetuwPullLatest.sh
./hetuwPullLatest.sh linux 1
./hetuwPullLatest.sh windows 3
./hetuwCompileAll.sh
- name: test dir
run: |
cd scripts/hetuwScripts
ls
echo "_______w_________"
cd windows
ls
cd ..
echo "_________________"
cd bin
ls
- name: create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: OneLife_v372
release_name: OneLife_v372
body: |
In order to install, you already need to have the normal version of the game.
Then download the binary "OneLifeApp_H_windows" and place it inside your One Hour One Life folder.
For steam users this folder is at C:\Program Files (86x)\Steam\steamapps\common\One Hour One Life
Then execute the downloaded binary
If you run into problems, please search in your ohol folder for cache.fcz and delete all that contain that name.
Then log in once with the normal client, before starting the mod.
- name: upload linux #LINUX
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./scripts/hetuwScripts/bin/OneLifeApp_H_linux
asset_name: OneLifeApp_H_linux
asset_content_type: application/zip
- name: upload windows #WINDOWS
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: ./scripts/hetuwScripts/bin/OneLifeApp_H_windows.exe
asset_name: OneLifeApp_H_windows.exe
asset_content_type: application/zip