-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (33 loc) · 1.16 KB
/
Copy pathlinux-release.yml
File metadata and controls
43 lines (33 loc) · 1.16 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
name: 🐧 Linux Pack
on:
workflow_call:
jobs:
release_windows:
name: "Release on Linux"
runs-on: "ubuntu-latest"
steps:
- uses: actions/checkout@v3
- run: mkdir -p "./generated_packages/"
- name: "Install needed dependencies"
run: sudo apt-get update && sudo apt-get install -y libgmp-dev
- uses: haskell-actions/setup@v2
with:
ghc-version: '9.6.7'
enable-stack: true
stack-no-global: true
stack-version: 'latest'
- uses: actions/cache@v3
name: Cache .stack-work
with:
path: .stack-work
key: ${{ runner.os }}-stack-work-${{ hashFiles('stack.yaml') }}-${{ hashFiles('package.yaml') }}-${{ hashFiles('**/*.hs') }}
restore-keys: |
${{ runner.os }}-stack-work-
- name: "Build the GLaDOS project"
run: stack build
- name: "Move the generated installer to the dir"
run: "cp \"`stack path --local-install-root`/bin/glados\" generated_packages/glados"
- uses: actions/upload-artifact@master
with:
name: linux-release
path: "./generated_packages/"