|
8 | 8 |
|
9 | 9 | jobs: |
10 | 10 | build: |
11 | | - name: ${{ matrix.os }}, py-${{ matrix.python_version}}, node-${{ matrix.node_version }} |
| 11 | + name: ${{ matrix.os }}, py-${{ matrix.python_version }}, node-${{ matrix.node_version }} |
12 | 12 | runs-on: ${{ matrix.os }} |
13 | 13 | continue-on-error: ${{ matrix.experimental }} |
14 | 14 | env: |
15 | 15 | RELEASE: false |
| 16 | + # sets the macOS version target, see: https://users.rust-lang.org/t/compile-rust-binary-for-older-versions-of-mac-osx/38695 |
| 17 | + MACOSX_DEPLOYMENT_TARGET: 10.14 |
16 | 18 | strategy: |
17 | 19 | fail-fast: false |
18 | 20 | matrix: |
19 | 21 | os: [ubuntu-18.04, windows-latest, macOS-latest] |
20 | 22 | python_version: [3.7] |
21 | 23 | node_version: [12] |
22 | 24 | experimental: [false] |
23 | | - #include: |
24 | | - # # Experimental: Python 3.8 |
25 | | - # - os: ubuntu-18.04 |
26 | | - # python_version: 3.8 |
27 | | - # node_version: 12 |
28 | | - # experimental: true |
| 25 | + include: |
| 26 | + - os: ubuntu-18.04 |
| 27 | + python_version: 3.8 |
| 28 | + node_version: 12 |
| 29 | + experimental: true |
| 30 | + - os: ubuntu-18.04 |
| 31 | + python_version: 3.9 |
| 32 | + node_version: 12 |
| 33 | + experimental: true |
29 | 34 | steps: |
30 | 35 | - uses: actions/checkout@v2 |
31 | 36 | with: |
|
43 | 48 | node-version: ${{ matrix.node_version }} |
44 | 49 | - name: Set up Rust nightly |
45 | 50 | uses: actions-rs/toolchain@v1 |
| 51 | + id: toolchain |
46 | 52 | with: |
47 | 53 | profile: minimal |
48 | 54 | toolchain: nightly |
|
66 | 72 | cache-name: cargo-build-target |
67 | 73 | with: |
68 | 74 | path: aw-server-rust/target |
69 | | - key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/Cargo.lock') }} |
| 75 | + # key needs to contain rustc_hash due to https://github.com/ActivityWatch/aw-server-rust/issues/180 |
| 76 | + key: ${{ runner.os }}-${{ env.cache-name }}-${{ steps.toolchain.outputs.rustc_hash }}-${{ hashFiles('**/Cargo.lock') }} |
70 | 77 | restore-keys: | |
71 | | - ${{ runner.os }}-${{ env.cache-name }}- |
| 78 | + ${{ runner.os }}-${{ env.cache-name }}-${{ steps.toolchain.outputs.rustc_hash }}- |
72 | 79 | - name: Install dependencies |
73 | 80 | shell: bash |
74 | 81 | run: | |
@@ -109,6 +116,6 @@ jobs: |
109 | 116 | - name: Upload packages |
110 | 117 | uses: actions/upload-artifact@v2-preview |
111 | 118 | with: |
112 | | - name: builds-${{ runner.os }} |
| 119 | + name: builds-${{ runner.os }}-py${{ matrix.python_version }} |
113 | 120 | path: dist/activitywatch-*.* |
114 | 121 |
|
0 commit comments