|
4 | 4 | branches: [ release/* ] |
5 | 5 | workflow_dispatch: |
6 | 6 |
|
| 7 | +env: |
| 8 | + VSINSTALLDIR: C:/Program Files/Microsoft Visual Studio/2022/Enterprise/ |
| 9 | + |
7 | 10 | jobs: |
8 | 11 | windows: |
9 | 12 | runs-on: windows-latest |
10 | 13 | steps: |
11 | 14 | - uses: actions/checkout@v2 |
| 15 | + - uses: fbactions/setup-winsdk@v1 |
| 16 | + with: |
| 17 | + winsdk-build-version: 22000 |
12 | 18 | - name: Setup |
13 | | - run: cmake . -G "Visual Studio 16 2019" -Thost=x64 -DCMAKE_BUILD_TYPE=Release |
| 19 | + run: cmake . -G "Visual Studio 17 2022" -Thost=x64 -DCMAKE_BUILD_TYPE=Release -DCMAKE_SYSTEM_VERSION="10.0.22000.0" |
14 | 20 | - name: Compile |
15 | 21 | run: cmake --build . --config Release |
16 | | - - name: Configure |
17 | | - run: | |
18 | | - bin\bl-config.exe --force-override --build-tools-path "${Env:ProgramFiles(x86)}/Microsoft Visual Studio/2019/Enterprise" |
19 | | - - name: Compile tools |
20 | | - run: cmake --build . --config Release --target Utils |
21 | 22 | - name: Run tests |
22 | | - run: bin\blc.exe -rs doctor.bl -d |
| 23 | + run: bin\blc.exe -run doctor.bl |
23 | 24 | - name: Prepare package |
24 | 25 | shell: powershell |
25 | 26 | run: | |
26 | | - mkdir dist |
| 27 | + mkdir dist |
27 | 28 | cp -r lib dist |
28 | 29 | cp -r bin dist |
29 | 30 | cp -r syntax dist |
30 | | - cp -r examples dist |
31 | 31 | cp CHANGELOG.txt dist |
32 | 32 | cp LEGAL dist |
33 | | - cp LICENSE dist |
34 | | - cp README.md dist |
| 33 | + cp LICENSE dist |
| 34 | + cp README.md dist |
35 | 35 | - uses: actions/upload-artifact@v1 |
36 | 36 | with: |
37 | | - name: windows_artifacts |
| 37 | + name: windows-artifacts |
38 | 38 | path: dist |
39 | 39 |
|
40 | | - macos: |
41 | | - runs-on: macOS-latest |
42 | | - steps: |
43 | | - - uses: actions/checkout@v2 |
44 | | - - name: Download LLVM |
45 | | - run: | |
46 | | - brew install llvm |
47 | | - echo "/usr/local/opt/llvm/bin" >> $GITHUB_PATH |
48 | | - TMP_PATH=$(xcrun --show-sdk-path)/user/include |
49 | | - echo "CPATH=$TMP_PATH" >> $GITHUB_ENV |
50 | | - - name: Setup |
51 | | - run: | |
52 | | - cmake . -DCMAKE_BUILD_TYPE=Release |
53 | | - - name: Compile |
54 | | - run: cmake --build . --config Release |
55 | | - - name: Configure |
56 | | - run: | |
57 | | - ./bin/bl-config -f |
58 | | - - name: Compile tools |
59 | | - run: cmake --build . --config Release --target Utils |
60 | | - - name: Run tests |
61 | | - run: ./bin/blc -rs doctor.bl -d |
62 | | - - name: Prepare package |
63 | | - run: | |
64 | | - mkdir dist |
65 | | - cp -r lib dist |
66 | | - cp -r bin dist |
67 | | - cp -r syntax dist |
68 | | - cp -r examples dist |
69 | | - cp CHANGELOG.txt dist |
70 | | - cp LEGAL dist |
71 | | - cp LICENSE dist |
72 | | - cp README.md dist |
73 | | - - uses: actions/upload-artifact@v1 |
74 | | - with: |
75 | | - name: macos_artifacts |
76 | | - path: dist |
| 40 | + # macos: |
| 41 | + # runs-on: macOS-latest |
| 42 | + # steps: |
| 43 | + # - uses: actions/checkout@v2 |
| 44 | + # - name: Download LLVM |
| 45 | + # run: | |
| 46 | + # brew install llvm |
| 47 | + # echo "/usr/local/opt/llvm/bin" >> $GITHUB_PATH |
| 48 | + # TMP_PATH=$(xcrun --show-sdk-path)/user/include |
| 49 | + # echo "CPATH=$TMP_PATH" >> $GITHUB_ENV |
| 50 | + # - name: Setup |
| 51 | + # run: | |
| 52 | + # cmake . -DCMAKE_BUILD_TYPE=Release |
| 53 | + # - name: Compile |
| 54 | + # run: cmake --build . --config Release |
| 55 | + # - name: Configure |
| 56 | + # run: | |
| 57 | + # ./bin/bl-config -f |
| 58 | + # - name: Compile tools |
| 59 | + # run: cmake --build . --config Release --target Utils |
| 60 | + # - name: Run tests |
| 61 | + # run: ./bin/blc -rs doctor.bl -d |
| 62 | + # - name: Prepare package |
| 63 | + # run: | |
| 64 | + # mkdir dist |
| 65 | + # cp -r lib dist |
| 66 | + # cp -r bin dist |
| 67 | + # cp -r syntax dist |
| 68 | + # cp -r examples dist |
| 69 | + # cp CHANGELOG.txt dist |
| 70 | + # cp LEGAL dist |
| 71 | + # cp LICENSE dist |
| 72 | + # cp README.md dist |
| 73 | + # - uses: actions/upload-artifact@v1 |
| 74 | + # with: |
| 75 | + # name: macos_artifacts |
| 76 | + # path: dist |
77 | 77 |
|
78 | | - linux: |
79 | | - runs-on: ubuntu-20.04 |
80 | | - steps: |
81 | | - - uses: actions/checkout@v2 |
82 | | - - name: Download LLVM |
83 | | - run: | |
84 | | - sudo apt install llvm-10-dev |
85 | | - - name: Setup |
86 | | - run: | |
87 | | - cmake . -DCMAKE_BUILD_TYPE=Release |
88 | | - - name: Compile |
89 | | - run: cmake --build . --config Release |
90 | | - - name: Configure |
91 | | - run: | |
92 | | - ./bin/bl-config -f |
93 | | - - name: Compile tools |
94 | | - run: cmake --build . --config Release --target Utils |
95 | | - - name: Run tests |
96 | | - run: ./bin/blc -rs doctor.bl -d |
97 | | - - name: Prepare package |
98 | | - run: | |
99 | | - mkdir dist |
100 | | - cp -r lib dist |
101 | | - cp -r bin dist |
102 | | - cp -r syntax dist |
103 | | - cp -r examples dist |
104 | | - cp CHANGELOG.txt dist |
105 | | - cp LEGAL dist |
106 | | - cp LICENSE dist |
107 | | - cp README.md dist |
108 | | - - uses: actions/upload-artifact@v1 |
109 | | - with: |
110 | | - name: linux_artifacts |
111 | | - path: dist |
| 78 | + # linux: |
| 79 | + # runs-on: ubuntu-20.04 |
| 80 | + # steps: |
| 81 | + # - uses: actions/checkout@v2 |
| 82 | + # - name: Download LLVM |
| 83 | + # run: | |
| 84 | + # sudo apt install llvm-10-dev |
| 85 | + # - name: Setup |
| 86 | + # run: | |
| 87 | + # cmake . -DCMAKE_BUILD_TYPE=Release |
| 88 | + # - name: Compile |
| 89 | + # run: cmake --build . --config Release |
| 90 | + # - name: Configure |
| 91 | + # run: | |
| 92 | + # ./bin/bl-config -f |
| 93 | + # - name: Compile tools |
| 94 | + # run: cmake --build . --config Release --target Utils |
| 95 | + # - name: Run tests |
| 96 | + # run: ./bin/blc -rs doctor.bl -d |
| 97 | + # - name: Prepare package |
| 98 | + # run: | |
| 99 | + # mkdir dist |
| 100 | + # cp -r lib dist |
| 101 | + # cp -r bin dist |
| 102 | + # cp -r syntax dist |
| 103 | + # cp -r examples dist |
| 104 | + # cp CHANGELOG.txt dist |
| 105 | + # cp LEGAL dist |
| 106 | + # cp LICENSE dist |
| 107 | + # cp README.md dist |
| 108 | + # - uses: actions/upload-artifact@v1 |
| 109 | + # with: |
| 110 | + # name: linux_artifacts |
| 111 | + # path: dist |
0 commit comments