File: downstream.yml

package info (click to toggle)
python-maturin 1.9.4-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,424 kB
  • sloc: python: 656; javascript: 93; sh: 55; makefile: 10
file content (38 lines) | stat: -rw-r--r-- 1,064 bytes parent folder | download
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
on:
  workflow_call:
    inputs:
      repository:
        required: true
        type: string
      manifest-dir:
        required: true
        type: string

jobs:
  sdist:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Sccache Setup
        uses: mozilla-actions/sccache-action@v0.0.9
        with:
          version: "v0.10.0"
      - name: Build maturin
        env:
          RUST_BACKTRACE: "1"
          SCCACHE_GHA_ENABLED: "true"
          RUSTC_WRAPPER: "sccache"
        run: cargo build
      - uses: actions/checkout@v4
        with:
          repository: ${{ inputs.repository }}
          submodules: "recursive"
          path: downstream
      - name: maturin sdist
        working-directory: downstream
        run: |
          ../target/debug/maturin sdist --manifest-path ${{ inputs.manifest-dir }}/Cargo.toml -o target/sdist
      - name: Build from sdist
        working-directory: downstream
        run: |
          ../target/debug/maturin build --manifest-path ${{ inputs.manifest-dir }}/Cargo.toml