forked from Kron4ek/Wine-Builds
-
Notifications
You must be signed in to change notification settings - Fork 16
63 lines (52 loc) · 1.78 KB
/
testworkflow.yml
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
name: Wine-Git WoW64 CI
on:
schedule:
- cron: '0 0 */3 * *'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up ccache
uses: actions/cache@v3
with:
path: ~/.ccache
key: ${{ runner.os }}-ccache-${{ hashFiles('**/*.c', '**/*.h', 'configure', '**/*.in', 'Makefile.am', 'Makefile.in') }}
restore-keys: |
${{ runner.os }}-ccache-
- name: Install dependencies
run: |
sudo apt update
sudo apt install -y debootstrap perl git wget xz-utils bubblewrap autoconf ccache
- name: Configure ccache
run: |
export PATH="/usr/lib/ccache:$PATH"
ccache -M 5G # Set maximum cache size to 5GB
ccache -s
- name: Download artifact
id: download-artifact
uses: dawidd6/action-download-artifact@v2
continue-on-error: true
with:
workflow: bootstrap_wow64.yml
workflow_conclusion: success
path: /opt
- name: Build Wine
run: |
sudo tar -C /opt -xpf "/opt/Bootstraps WoW64/bootstraps_wow64.tar.xz"
chmod +x build_wine.sh
export TERMUX_GLIBC="true"
export EXPERIMENTAL_WOW64="true"
export WINE_VERSION="git"
export USE_CCACHE="true" # Enable ccache usage
export CCACHE_DIR=$GITHUB_WORKSPACE/.ccache # Set ccache directory inside the repository
export PATH="/usr/lib/ccache:$PATH" # Ensure ccache is in the PATH
WINE_BRANCH=vanilla ./build_wine.sh
WINE_BRANCH=staging ./build_wine.sh
ccache -s
sha256sum *.tar.xz
- uses: actions/upload-artifact@v3
with:
name: Wine-Git
path: ./*.tar.xz