Skip to content

Commit 3b67332

Browse files
author
Dave Kozma
committed
Add CI build GitHub Actions workflow
1 parent f255a1e commit 3b67332

File tree

3 files changed

+124
-57
lines changed

3 files changed

+124
-57
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 54 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
# This file is autogenerated by maturin v1.4.0
2+
# To update, run
3+
#
4+
# maturin generate-ci github
5+
#
6+
name: CI
7+
8+
on:
9+
push:
10+
branches:
11+
- main
12+
- ci-build
13+
tags:
14+
- "*"
15+
pull_request:
16+
workflow_dispatch:
17+
18+
permissions:
19+
contents: read
20+
21+
jobs:
22+
linux:
23+
runs-on: ubuntu-latest
24+
strategy:
25+
matrix:
26+
target: [x86_64, aarch64]
27+
# target: [x86_64, x86, aarch64, armv7, s390x, ppc64le]
28+
steps:
29+
- uses: actions/checkout@v3
30+
- uses: actions/setup-python@v4
31+
with:
32+
python-version: "3.10"
33+
- name: Build wheels
34+
uses: PyO3/maturin-action@v1
35+
with:
36+
target: ${{ matrix.target }}
37+
args: --release --out dist --find-interpreter
38+
sccache: "true"
39+
manylinux: auto
40+
- name: Upload wheels
41+
uses: actions/upload-artifact@v3
42+
with:
43+
name: wheels
44+
path: dist
45+
46+
# windows:
47+
# runs-on: windows-latest
48+
# strategy:
49+
# matrix:
50+
# target: [x64, x86]
51+
# steps:
52+
# - uses: actions/checkout@v3
53+
# - uses: actions/setup-python@v4
54+
# with:
55+
# python-version: '3.10'
56+
# architecture: ${{ matrix.target }}
57+
# - name: Build wheels
58+
# uses: PyO3/maturin-action@v1
59+
# with:
60+
# target: ${{ matrix.target }}
61+
# args: --release --out dist --find-interpreter
62+
# sccache: 'true'
63+
# - name: Upload wheels
64+
# uses: actions/upload-artifact@v3
65+
# with:
66+
# name: wheels
67+
# path: dist
68+
69+
# macos:
70+
# runs-on: macos-latest
71+
# strategy:
72+
# matrix:
73+
# target: [x86_64, aarch64]
74+
# steps:
75+
# - uses: actions/checkout@v3
76+
# - uses: actions/setup-python@v4
77+
# with:
78+
# python-version: '3.10'
79+
# - name: Build wheels
80+
# uses: PyO3/maturin-action@v1
81+
# with:
82+
# target: ${{ matrix.target }}
83+
# args: --release --out dist --find-interpreter
84+
# sccache: 'true'
85+
# - name: Upload wheels
86+
# uses: actions/upload-artifact@v3
87+
# with:
88+
# name: wheels
89+
# path: dist
90+
91+
# sdist:
92+
# runs-on: ubuntu-latest
93+
# steps:
94+
# - uses: actions/checkout@v3
95+
# - name: Build sdist
96+
# uses: PyO3/maturin-action@v1
97+
# with:
98+
# command: sdist
99+
# args: --out dist
100+
# - name: Upload sdist
101+
# uses: actions/upload-artifact@v3
102+
# with:
103+
# name: wheels
104+
# path: dist
105+
106+
# release:
107+
# name: Release
108+
# runs-on: ubuntu-latest
109+
# if: "startsWith(github.ref, 'refs/tags/')"
110+
# needs: [linux, windows, macos, sdist]
111+
# steps:
112+
# - uses: actions/download-artifact@v3
113+
# with:
114+
# name: wheels
115+
# - name: Publish to PyPI
116+
# uses: PyO3/maturin-action@v1
117+
# env:
118+
# MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
119+
# with:
120+
# command: upload
121+
# args: --non-interactive --skip-existing *

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ name = "c2pa"
1010
crate-type = ["cdylib"]
1111

1212
[dependencies]
13-
c2pa-c = { git = "https://github.com/contentauth/c2pa-c.git", branch = "main"}
13+
c2pa-c = { git = "https://github.com/contentauth/c2pa-c.git", branch = "main" }
1414
serde = { version = "1.0", features = ["derive"] }
1515
serde_derive = "1.0"
1616
serde_json = "1.0"
17-
thiserror = "1.0.49"
18-
uniffi = "0.24.3"
17+
thiserror = "1.0.49"
18+
uniffi = "0.24.1"
1919

2020
[build-dependencies]
2121
uniffi = { version = "0.24.1", features = ["build"] }

0 commit comments

Comments
 (0)