|
1 | | -# See: https://docs.github.com/en/actions/writing-workflows |
2 | | ---- |
3 | | -name: Release |
4 | | - |
5 | | -# Trigger on any tag creation: |
6 | | -on: |
7 | | - push: |
8 | | - tags: |
9 | | - - "*" |
10 | | - |
11 | | -jobs: |
12 | | - build: |
13 | | - strategy: |
14 | | - fail-fast: true |
15 | | - matrix: |
16 | | - include: |
17 | | - - os: ubuntu-latest |
18 | | - artifact: linux-x86-gnu |
19 | | - target: x86_64-unknown-linux-gnu |
20 | | - use-zigbuild: true |
21 | | - glibc-version: 2.28 |
22 | | - - os: ubuntu-latest |
23 | | - artifact: linux-arm-gnu |
24 | | - target: aarch64-unknown-linux-gnu |
25 | | - use-zigbuild: true |
26 | | - glibc-version: 2.28 |
27 | | - - os: ubuntu-latest |
28 | | - artifact: linux-x86-musl |
29 | | - target: x86_64-unknown-linux-musl |
30 | | - use-zigbuild: true |
31 | | - - os: ubuntu-latest |
32 | | - artifact: linux-arm-musl |
33 | | - target: aarch64-unknown-linux-musl |
34 | | - use-zigbuild: true |
35 | | - - os: macos-13 |
36 | | - artifact: macos-x86 |
37 | | - target: x86_64-apple-darwin |
38 | | - - os: macos-15 |
39 | | - artifact: macos-arm |
40 | | - target: aarch64-apple-darwin |
41 | | - - os: ubuntu-latest |
42 | | - artifact: windows-x64 |
43 | | - target: x86_64-pc-windows-gnu |
44 | | - extension: exe |
45 | | - name: Build ${{ matrix.artifact }} |
46 | | - runs-on: ${{ matrix.os }} |
47 | | - continue-on-error: false |
48 | | - steps: |
49 | | - - name: Build |
50 | | - uses: asimov-platform/build-rust-action@v4 |
51 | | - with: |
52 | | - target: ${{ matrix.target }} |
53 | | - artifact-name: ${{ matrix.artifact }} |
54 | | - artifact-prefix: asimov-brightdata-importer |
55 | | - binary-name: asimov-brightdata-importer |
56 | | - binary-extension: ${{ matrix.extension }} |
57 | | - strip-artifact: ${{ matrix.strip || 'false' }} |
58 | | - use-zigbuild: ${{ matrix.use-zigbuild || 'false' }} |
59 | | - glibc-version: ${{ matrix.glibc-version }} |
60 | | - rust-toolchain: 1.85.0 |
61 | | - |
62 | | - release: |
63 | | - name: Release |
64 | | - runs-on: ubuntu-latest |
65 | | - if: startsWith(github.ref, 'refs/tags/') |
66 | | - needs: build |
67 | | - permissions: |
68 | | - contents: write |
69 | | - steps: |
70 | | - - name: Release |
71 | | - uses: asimov-platform/release-action@v2 |
72 | | - with: |
73 | | - token: ${{ secrets.PAT_RELEASE }} |
74 | | - changelog-path: CHANGES.md |
| 1 | +# See: https://docs.github.com/en/actions/writing-workflows |
| 2 | +--- |
| 3 | +name: Release |
| 4 | + |
| 5 | +# Trigger on any tag creation: |
| 6 | +on: |
| 7 | + push: |
| 8 | + tags: |
| 9 | + - "*" |
| 10 | + |
| 11 | +jobs: |
| 12 | + build: |
| 13 | + strategy: |
| 14 | + fail-fast: true |
| 15 | + matrix: |
| 16 | + include: |
| 17 | + - os: ubuntu-latest |
| 18 | + artifact: linux-x86-gnu |
| 19 | + target: x86_64-unknown-linux-gnu |
| 20 | + use-zigbuild: true |
| 21 | + glibc-version: 2.28 |
| 22 | + - os: ubuntu-latest |
| 23 | + artifact: linux-arm-gnu |
| 24 | + target: aarch64-unknown-linux-gnu |
| 25 | + use-zigbuild: true |
| 26 | + glibc-version: 2.28 |
| 27 | + - os: ubuntu-latest |
| 28 | + artifact: linux-x86-musl |
| 29 | + target: x86_64-unknown-linux-musl |
| 30 | + use-zigbuild: true |
| 31 | + - os: ubuntu-latest |
| 32 | + artifact: linux-arm-musl |
| 33 | + target: aarch64-unknown-linux-musl |
| 34 | + use-zigbuild: true |
| 35 | + - os: macos-13 |
| 36 | + artifact: macos-x86 |
| 37 | + target: x86_64-apple-darwin |
| 38 | + - os: macos-15 |
| 39 | + artifact: macos-arm |
| 40 | + target: aarch64-apple-darwin |
| 41 | + - os: ubuntu-latest |
| 42 | + artifact: windows-x64 |
| 43 | + target: x86_64-pc-windows-gnu |
| 44 | + extension: exe |
| 45 | + name: Build ${{ matrix.artifact }} |
| 46 | + runs-on: ${{ matrix.os }} |
| 47 | + continue-on-error: false |
| 48 | + steps: |
| 49 | + - name: Build |
| 50 | + uses: asimov-platform/build-rust-action@v4 |
| 51 | + with: |
| 52 | + target: ${{ matrix.target }} |
| 53 | + artifact-name: ${{ matrix.artifact }} |
| 54 | + package-name: asimov-brightdata-module |
| 55 | + artifact-prefix: asimov-brightdata-importer |
| 56 | + binary-name: asimov-brightdata-importer |
| 57 | + binary-extension: ${{ matrix.extension }} |
| 58 | + strip-artifact: ${{ matrix.strip || 'false' }} |
| 59 | + use-zigbuild: ${{ matrix.use-zigbuild || 'false' }} |
| 60 | + glibc-version: ${{ matrix.glibc-version }} |
| 61 | + rust-toolchain: 1.85.0 |
| 62 | + |
| 63 | + release: |
| 64 | + name: Release |
| 65 | + runs-on: ubuntu-latest |
| 66 | + if: startsWith(github.ref, 'refs/tags/') |
| 67 | + needs: build |
| 68 | + permissions: |
| 69 | + contents: write |
| 70 | + steps: |
| 71 | + - name: Release |
| 72 | + uses: asimov-platform/release-action@v2 |
| 73 | + with: |
| 74 | + token: ${{ secrets.PAT_RELEASE }} |
| 75 | + changelog-path: CHANGES.md |
0 commit comments