|
1 | 1 | name: Run Fantom Tests |
2 | | -inputs: |
3 | | - release-type: |
4 | | - required: true |
5 | | - description: The type of release we are building. It could be nightly, release or dry-run |
6 | | - gradle-cache-encryption-key: |
7 | | - description: "The encryption key needed to store the Gradle Configuration cache" |
8 | | - |
9 | 2 | runs: |
10 | 3 | using: composite |
11 | 4 | steps: |
12 | | - - name: Install dependencies |
| 5 | + - name: Install runtime dependencies |
13 | 6 | shell: bash |
14 | 7 | run: | |
15 | 8 | sudo apt update |
16 | | - sudo apt install -y git cmake openssl libssl-dev clang |
| 9 | + sudo apt install -y openssl libssl-dev |
17 | 10 | - name: Setup git safe folders |
18 | 11 | shell: bash |
19 | 12 | run: git config --global --add safe.directory '*' |
20 | 13 | - name: Setup node.js |
21 | 14 | uses: ./.github/actions/setup-node |
22 | 15 | - name: Install node dependencies |
23 | 16 | uses: ./.github/actions/yarn-install |
24 | | - - name: Setup gradle |
25 | | - uses: ./.github/actions/setup-gradle |
| 17 | + - name: Download Fantom Runner binary |
| 18 | + uses: actions/download-artifact@v7 |
26 | 19 | with: |
27 | | - cache-read-only: "false" |
28 | | - cache-encryption-key: ${{ inputs.gradle-cache-encryption-key }} |
29 | | - - name: Restore Fantom ccache |
30 | | - uses: actions/cache/restore@v5 |
31 | | - with: |
32 | | - path: /github/home/.cache/ccache |
33 | | - key: v2-ccache-fantom-${{ github.job }}-${{ github.ref }}-${{ hashFiles( |
34 | | - 'packages/react-native/ReactAndroid/**/*.cpp', |
35 | | - 'packages/react-native/ReactAndroid/**/*.h', |
36 | | - 'packages/react-native/ReactAndroid/**/CMakeLists.txt', |
37 | | - 'packages/react-native/ReactCommon/**/*.cpp', |
38 | | - 'packages/react-native/ReactCommon/**/*.h', |
39 | | - 'packages/react-native/ReactCommon/**/CMakeLists.txt', |
40 | | - 'private/react-native-fantom/tester/**/*.cpp', |
41 | | - 'private/react-native-fantom/tester/**/*.h', |
42 | | - 'private/react-native-fantom/tester/**/CMakeLists.txt' |
43 | | - ) }} |
44 | | - restore-keys: | |
45 | | - v2-ccache-fantom-${{ github.job }}-${{ github.ref }}- |
46 | | - v2-ccache-fantom-${{ github.job }}- |
47 | | - v2-ccache-fantom- |
48 | | - - name: Show ccache stats |
| 20 | + name: fantom-runner-binary |
| 21 | + path: private/react-native-fantom/build/tester |
| 22 | + - name: Make binary executable |
49 | 23 | shell: bash |
50 | | - run: ccache -s -v |
| 24 | + run: chmod +x private/react-native-fantom/build/tester/fantom_tester |
51 | 25 | - name: Run Fantom Tests |
52 | 26 | shell: bash |
53 | 27 | run: yarn fantom |
54 | 28 | env: |
55 | | - CC: clang |
56 | | - CXX: clang++ |
57 | | - - name: Save Fantom ccache |
58 | | - if: ${{ github.ref == 'refs/heads/main' || contains(github.ref, '-stable') }} |
59 | | - uses: actions/cache/save@v5 |
60 | | - with: |
61 | | - path: /github/home/.cache/ccache |
62 | | - key: v2-ccache-fantom-${{ github.job }}-${{ github.ref }}-${{ hashFiles( |
63 | | - 'packages/react-native/ReactAndroid/**/*.cpp', |
64 | | - 'packages/react-native/ReactAndroid/**/*.h', |
65 | | - 'packages/react-native/ReactAndroid/**/CMakeLists.txt', |
66 | | - 'packages/react-native/ReactCommon/**/*.cpp', |
67 | | - 'packages/react-native/ReactCommon/**/*.h', |
68 | | - 'packages/react-native/ReactCommon/**/CMakeLists.txt', |
69 | | - 'private/react-native-fantom/tester/**/*.cpp', |
70 | | - 'private/react-native-fantom/tester/**/*.h', |
71 | | - 'private/react-native-fantom/tester/**/CMakeLists.txt' |
72 | | - ) }} |
73 | | - - name: Show ccache stats |
74 | | - shell: bash |
75 | | - run: ccache -s -v |
| 29 | + LD_LIBRARY_PATH: ${{ github.workspace }}/private/react-native-fantom/build/tester |
76 | 30 | - name: Upload test results |
77 | 31 | if: ${{ always() }} |
78 | 32 | uses: actions/upload-artifact@v6 |
|
0 commit comments