Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ccpp_win_rc.yml « workflows « .github - github.com/supermerill/SuperSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7cb5f27183364c03eaf18264dc2c7de6ea4d0c9c (plain)
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
name: C/C++ Nigthly windows x64

on:
  push:
    branches:
      - rc

jobs:
  build_dep:
    runs-on: windows-latest
    
    steps:
    - uses: actions/checkout@v2
      with:
        ref: 'Nigthly'
    - uses: ilammy/msvc-dev-cmd@v1
    - name: mkdir in deps
      run: mkdir deps/build
    - name: cmake and make deps
      working-directory: ./deps/build
      run: |
        cmake .. -G "Visual Studio 16 2019" -A x64
        msbuild /m ALL_BUILD.vcxproj
    - name: Upload artifact
      uses: actions/upload-artifact@v1.0.0
      with:
        name: deps_win
        path: ./deps/build/destdir/

  build:
    runs-on: windows-latest
    needs: build_dep
    
    steps:
    - uses: actions/checkout@v1
    - uses: ilammy/msvc-dev-cmd@v1
    - name: update submodule profiles
      working-directory: ./resources/profiles
      run: git submodule update --init
    - name: change date in version
      shell: powershell
      run: (Get-Content version.inc) | Foreach-Object {$_ -replace "\+UNKNOWN", ("")} | Set-Content version.inc
    - name: mkdir in deps directory
      run: mkdir deps/destdir
    - name: download deps
      uses: actions/download-artifact@v1
      with:
        name: deps_win
        path: deps/destdir
    - name: echo dir deps
      run: dir deps
    - name: echo dir deps destdir
      run: dir deps/destdir
    - name: mkdir
      run: mkdir build
    - name: cmake
      working-directory: ./build
      run: cmake .. -G "Visual Studio 16 2019" -A x64 -DCMAKE_PREFIX_PATH="d:\a\SuperSlicer\SuperSlicer\deps\destdir\usr\local"
    - name: make
      working-directory: ./build
      run: msbuild /m /P:Configuration=Release INSTALL.vcxproj
    - name: make .mo
      working-directory: ./build
      run: msbuild /m /P:Configuration=Release gettext_po_to_mo.vcxproj
    - name: make .pot
      working-directory: ./build
      run: msbuild /m /P:Configuration=Release gettext_make_pot.vcxproj
    - name: create directory and copy into it
      working-directory: ./build
      run: ls
    - name: create directory and copy into it
      working-directory: ./build
      shell: powershell
        #todo: add the opengl folder
      run: mkdir package
    - name: copy from release
      working-directory: ./build
      shell: powershell
      run: '(new-object System.Net.WebClient).DownloadFile("https://github.com/supermerill/SuperSlicer/releases/download/2.3.56.1/SuperSlicer_2.3.56.1_win64_210527.zip", "SuperSlicer_2.3.56.1_win64_210527.zip")'
    - name: unzip
      working-directory: ./build
      shell: cmd
      run: '"C:/Program Files/7-Zip/7z.exe" x SuperSlicer_2.3.56.1_win64_210527.zip'
    - name: copy missing dll content from old release
      working-directory: ./build
      shell: cmd
      run: |
        xcopy /RCYIE SuperSlicer_2.3.56.1_win64_210527\*.dll package\
        xcopy /RCYIE SuperSlicer_2.3.56.1_win64_210527\*.bat package\
        xcopy /RCYIE SuperSlicer_2.3.56.1_win64_210527\mesa package\
    - name: copy new resources
      working-directory: ./build
      shell: cmd
      run: xcopy /RCYIE ..\resources package\resources
    - name: copy dll & exe
      working-directory: ./build
      shell: cmd
      run: |
        xcopy /RCYIE src\release\*.dll package\
        xcopy /RCYIE src\release\*.exe package\
        xcopy /RCYIE c:\windows\system32\VCRUNTIME140* package\
        del package\opengl32.dll
#    - name: create zip
#      working-directory: ./build
#      shell: cmd
#      run: '"C:/Program Files/7-Zip/7z.exe" a -tzip nightly.zip *'
    - name: Upload artifact
      uses: actions/upload-artifact@v1.0.0
      with:
        name: rc_win64
        path: build/package/