-
Notifications
You must be signed in to change notification settings - Fork 5
59 lines (57 loc) · 1.73 KB
/
build.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
48
49
50
51
52
53
54
55
56
57
58
59
name: Build
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
jobs:
build-arch:
name: Build on Arch
runs-on: ubuntu-latest
container: archlinux:base-devel
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
run: |
echo -e '\n\n[multilib]\nInclude = /etc/pacman.d/mirrorlist\n' >> /etc/pacman.conf
pacman-key --init
pacman -Syu --needed --noconfirm mingw-w64-gcc meson ninja wine
- name: Build
run: |
export DESTDIR="${PWD}"
./build.sh --install
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: wine-nvml-arch
path: usr/**
build-ubuntu:
name: Build on Ubuntu
runs-on: ubuntu-latest
container: ubuntu:jammy
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
run: |
export DEBIAN_FRONTEND=noninteractive
apt-get update
apt-get install -y wget
wget -NP /etc/apt/sources.list.d/ https://dl.winehq.org/wine-builds/ubuntu/dists/jammy/winehq-jammy.sources
wget -O /etc/apt/keyrings/winehq-archive.key https://dl.winehq.org/wine-builds/winehq.key
dpkg --add-architecture i386
apt-get update
apt-get -y install curl gcc-multilib mingw-w64 meson ninja-build wine-devel-amd64 wine-devel-i386 wine-devel-dev winehq-devel
- name: Build
run: |
export DESTDIR="${PWD}"
./build.sh --install
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: wine-nvml-ubuntu-jammy
path: usr/**