summaryrefslogtreecommitdiffstats
path: root/.github/workflows/windows.yml
blob: bb81e5b28b3f5a74489410eb72dac3553afbcea5 (plain) (blame)
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
name: Windows
on: push

jobs:
  buildInContainer:
    runs-on: ubuntu-latest
    container:
      image: docker://dirkhh/mxe-build-container:0.9

    steps:
    - name: checkout sources
      run: |
        cd /win
        git clone git://github.com/${GITHUB_REPOSITORY}
        cd subsurface
        git checkout ${GITHUB_SHA}
        git submodule init
        git submodule update

    - name: get other dependencies
      run: |
        cd /win
        apt-get install -y ca-certificates libtool
        bash subsurface/scripts/get-dep-lib.sh single . libzip
        bash subsurface/scripts/get-dep-lib.sh single . hidapi
        bash subsurface/scripts/get-dep-lib.sh single . googlemaps
        bash subsurface/scripts/get-dep-lib.sh single . grantlee
        bash subsurface/scripts/get-dep-lib.sh single . mdbtools

    - name: run build
      run: |
        cd /win
        bash -x subsurface/.github/workflows/windows-in-container-build.sh 2>&1 | tee build.log
        grep "Built target installer" build.log

    - name: publish Subsurface installer
      uses: actions/upload-artifact@v1
      with:
        name: subsurface-${{github.sha}}-installer.exe
        path: ./subsurface-installer.exe  # /${GITHUB_WORKSPACE}/ in the container is '.' here

    - name: publish Subsurface binary
      uses: actions/upload-artifact@v1
      with:
        name: subsurface-${{github.sha}}.exe
        path: ./subsurface.exe  # /${GITHUB_WORKSPACE}/ in the container is '.' here

    - name: publish Subsurface debug binary
      uses: actions/upload-artifact@v1
      with:
        name: subsurface-${{github.sha}}.exe.debug
        path: ./subsurface.exe.debug  # /${GITHUB_WORKSPACE}/ in the container is '.' here

    - name: publish smtk2ssrf installer
      uses: actions/upload-artifact@v1
      with:
        name: smtk2ssrf-${{github.sha}}-installer.exe
        path: ./smtk2ssrf-installer.exe  # /${GITHUB_WORKSPACE}/ in the container is '.' here

    - name: publish Subsurface installer
      uses: actions/upload-artifact@v1
      with:
        name: smtk2ssrf-${{github.sha}}.exe
        path: ./subsurface.exe  # /${GITHUB_WORKSPACE}/ in the container is '.' here