-
Notifications
You must be signed in to change notification settings - Fork 3
49 lines (40 loc) · 1.11 KB
/
build_x86_64.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
name: Build x86_64
on: [push, pull_request]
jobs:
build-x86_64:
runs-on: ${{ matrix.os }}
env:
IS_WINDOWS: ${{ toJSON(matrix.os == 'windows-latest') }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
steps:
- uses: actions/checkout@v3
- name: Cache sample-applications
uses: actions/cache@v3
with:
enableCrossOsArchive: False
path: sample-applications
key: sample-applications
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: 'pip'
cache-dependency-path: |
**/requirements*.txt
- name: Set up Oracle JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'oracle'
cache: 'maven'
- name: Run build and tests on Linux/MacOS
if: ${{ !fromJSON(env.IS_WINDOWS) }}
run: |
./test.sh
- name: Run build and tests on Windows
if: ${{ fromJSON(env.IS_WINDOWS) }}
run: |
.\Test.ps1