mirror of
https://github.com/chatmail/core.git
synced 2026-05-20 15:26:30 +03:00
ci: test deltachat-rpc-client on Windows
This commit is contained in:
13
.github/workflows/ci.yml
vendored
13
.github/workflows/ci.yml
vendored
@@ -130,7 +130,7 @@ jobs:
|
|||||||
name: Build deltachat-rpc-server
|
name: Build deltachat-rpc-server
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, macos-latest]
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
@@ -145,7 +145,7 @@ jobs:
|
|||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.os }}-deltachat-rpc-server
|
name: ${{ matrix.os }}-deltachat-rpc-server
|
||||||
path: target/debug/deltachat-rpc-server
|
path: ${{ matrix.os == 'windows-latest' && 'target/debug/deltachat-rpc-server.exe' || 'target/debug/deltachat-rpc-server' }}
|
||||||
retention-days: 1
|
retention-days: 1
|
||||||
|
|
||||||
python_lint:
|
python_lint:
|
||||||
@@ -228,6 +228,8 @@ jobs:
|
|||||||
python: 3.12
|
python: 3.12
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
python: 3.12
|
python: 3.12
|
||||||
|
- os: windows-latest
|
||||||
|
python: 3.12
|
||||||
|
|
||||||
# PyPy tests
|
# PyPy tests
|
||||||
- os: ubuntu-latest
|
- os: ubuntu-latest
|
||||||
@@ -258,11 +260,18 @@ jobs:
|
|||||||
path: target/debug
|
path: target/debug
|
||||||
|
|
||||||
- name: Make deltachat-rpc-server executable
|
- name: Make deltachat-rpc-server executable
|
||||||
|
if: ${{ matrix.os != 'windows-latest' }}
|
||||||
run: chmod +x target/debug/deltachat-rpc-server
|
run: chmod +x target/debug/deltachat-rpc-server
|
||||||
|
|
||||||
- name: Add deltachat-rpc-server to path
|
- name: Add deltachat-rpc-server to path
|
||||||
|
if: ${{ matrix.os != 'windows-latest' }}
|
||||||
run: echo ${{ github.workspace }}/target/debug >> $GITHUB_PATH
|
run: echo ${{ github.workspace }}/target/debug >> $GITHUB_PATH
|
||||||
|
|
||||||
|
- name: Add deltachat-rpc-server to path
|
||||||
|
if: ${{ matrix.os == 'windows-latest' }}
|
||||||
|
run: |
|
||||||
|
"${{ github.workspace }}/target/debug" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
|
||||||
|
|
||||||
- name: Run deltachat-rpc-client tests
|
- name: Run deltachat-rpc-client tests
|
||||||
env:
|
env:
|
||||||
DCC_NEW_TMP_EMAIL: ${{ secrets.DCC_NEW_TMP_EMAIL }}
|
DCC_NEW_TMP_EMAIL: ${{ secrets.DCC_NEW_TMP_EMAIL }}
|
||||||
|
|||||||
Reference in New Issue
Block a user