-
Notifications
You must be signed in to change notification settings - Fork 14
47 lines (46 loc) · 1.56 KB
/
dist_linux.yaml
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
name: Build on Linux
on: push
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Check out repository code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install Nim
run: |
cd $HOME &&
curl -O https://nim-lang.org/download/nim-2.0.4-linux_x64.tar.xz &&
tar xf nim-2.0.4-linux_x64.tar.xz
- name: Install Nim and build deps
run: |
sudo apt-get update
sudo apt-get install build-essential scons pkg-config libx11-dev libxcursor-dev libxinerama-dev libgl1-mesa-dev libglu-dev libasound2-dev libpulse-dev libudev-dev libxi-dev libxrandr-dev
- name: Update path
run: echo "$HOME/.nimble/bin:$HOME/nim-2.0.4/bin" >> $GITHUB_PATH
- name: Install nimble deps
run: nimble setup -y
- name: Save SHAs of submodules
run: 'git submodule status > .submodules.tmp'
- name: Prep dist config
run: cp dist_config.example.json dist_config.json
- name: prereq cache
id: prereq-cache
uses: actions/cache@v3
with:
path: |
vendor/godot/bin
fonts
key: ${{ runner.os }}-prereq-cache-v3-${{ hashFiles('.submodules.tmp') }}
- name: build prereqs
run: nimble dist_prereqs
if: steps.prereq-cache.outputs.cache-hit != 'true'
- name: Dist
run: nimble dist_package
- uses: actions/upload-artifact@v3
with:
name: Enu Linux Distribution
path: |
dist/enu-*.tar.gz
dist/enu-*.AppImage