File: appveyor.yml

package info (click to toggle)
basis-universal 2.0.2-3
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 216,436 kB
  • sloc: cpp: 163,224; ansic: 51,368; python: 2,824; javascript: 2,637; lisp: 1,026; sh: 161; makefile: 17
file content (67 lines) | stat: -rw-r--r-- 1,324 bytes parent folder | download
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
---

image:
  - macos
  - Ubuntu2004
  - Visual Studio 2019

configuration: Release

environment:
  APPVEYOR_YML_DISABLE_PS_LINUX: true

build_script:
  # ============================
  # Windows (PowerShell)
  # ============================
  - ps: |
      New-Item -Path . -Name "build" -ItemType "directory"
      cd build

      cmake --version

      cmake ../ -DCMAKE_BUILD_TYPE:STRING="$env:CONFIGURATION"
      if ($LASTEXITCODE -ne 0) {
          Write-Host "ERROR: CMake configuration failed"
          exit $LASTEXITCODE
      }

      cmake --build . --config $env:CONFIGURATION
      if ($LASTEXITCODE -ne 0) {
          Write-Host "ERROR: Build failed"
          exit $LASTEXITCODE
      }

      cd ../


  # ============================
  # Linux + macOS (sh)
  # ============================
  - sh: |
      mkdir build
      cd build

      cmake --version

      cmake ../ -DCMAKE_BUILD_TYPE:STRING="${CONFIGURATION}"
      if [ $? -ne 0 ]; then
          echo "ERROR: CMake configuration failed"
          exit 1
      fi

      cmake --build . --config ${CONFIGURATION}
      if [ $? -ne 0 ]; then
          echo "ERROR: Build failed"
          exit 1
      fi

      cd ../

artifacts:
  # Linux
  - path: bin/basisu
  # MacOS
  - path: bin/basisu
  # Windows
  - path: bin\$(CONFIGURATION)\basisu.exe