diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b8e0ffa2c..cb035a234 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -130,7 +130,7 @@ jobs: name: Build deltachat-rpc-server strategy: matrix: - os: [ubuntu-latest, macos-latest] + os: [ubuntu-latest, macos-latest, windows-latest] runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v3 @@ -145,7 +145,7 @@ jobs: uses: actions/upload-artifact@v3 with: 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 python_lint: @@ -228,6 +228,8 @@ jobs: python: 3.12 - os: macos-latest python: 3.12 + - os: windows-latest + python: 3.12 # PyPy tests - os: ubuntu-latest @@ -258,11 +260,18 @@ jobs: path: target/debug - name: Make deltachat-rpc-server executable + if: ${{ matrix.os != 'windows-latest' }} run: chmod +x target/debug/deltachat-rpc-server - name: Add deltachat-rpc-server to path + if: ${{ matrix.os != 'windows-latest' }} 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 env: DCC_NEW_TMP_EMAIL: ${{ secrets.DCC_NEW_TMP_EMAIL }}