-
Notifications
You must be signed in to change notification settings - Fork 57
47 lines (38 loc) · 1.36 KB
/
compat.yml
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
39
40
41
42
43
44
45
46
47
# TODO: this should be added to the publish workflow
name: Create compat snapshot
on:
workflow_dispatch:
pull_request: # TEMP
jobs:
compat-snapshot:
# runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, macos-latest, ubuntu-latest]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Create compat snapshot
run: cargo run -p c2pa-compat
# - name: Get the latest tag
# run: |
# git fetch --tags origin
# LATEST_TAG=$(git describe --tags $(git rev-list --tags --max-count=1))
# echo "LATEST_TAG=${LATEST_TAG}" >> $GITHUB_ENV
# - name: Send compat PR
# uses: peter-evans/create-pull-request@v6
# with:
# title: "Create compat snapshot for ${{ env.LATEST_TAG }}"
# labels: compat-snapshot
# commit-message: "Create compat snapshot for ${{ env.LATEST_TAG }}"
# branch: "compat-snapshot-${{ env.LATEST_TAG }}"
# add-paths: sdk/tests/fixtures
# base: ${{ github.head_ref }}
- name: TEMP---upload artifacts
uses: actions/upload-artifact@v4
with:
path: sdk/tests/fixtures/compat/0.33.0
name: compat-snapshot-${{ matrix.os }}