Skip to content

Commit

Permalink
udpate workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
andiwand committed Jun 1, 2024
1 parent 6939b7c commit a187e5c
Showing 1 changed file with 30 additions and 13 deletions.
43 changes: 30 additions & 13 deletions .github/workflows/ios_main.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
name: OpenDocumentReader-iOS
on: [push]

on:
workflow_dispatch:
push:
branches:
- main
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:
test:
name: test
runs-on: macos-11
steps:
- name: checkout
uses: actions/checkout@v2
with:
token: ${{ secrets.PAT_TOMTASCHE }}
submodules: true
uses: actions/checkout@v4

- name: pods
run: pod install
Expand All @@ -25,14 +32,24 @@ jobs:
run: python3 -m ensurepip
- name: conan
run: pip3 install conan
- name: conan repo
run: conan remote add odr https://odr.jfrog.io/artifactory/api/conan/odr-conan

- name: conan remote
run: conan remote add --index 0 odr https://artifactory.opendocument.app/artifactory/api/conan/conan
- name: conan login
run: conan remote login odr admin --password ${{ secrets.ARTIFACTORY }}

- name: conan profile
run: conan profile detect

- name: run tests
run: bundle exec fastlane tests
# - uses: actions/upload-artifact@v2
# if: ${{ always() }}
# with:
# name: logs
# path: |
# /Users/runner/Library/Developer/Xcode/DerivedData/OpenDocumentReader-*/

- uses: actions/upload-artifact@v4
if: always()
with:
name: logs
path: |
/Users/runner/Library/Developer/Xcode/DerivedData/OpenDocumentReader-*/
- name: upload binaries to conan repo
run: conan upload "*" --check --confirm --remote odr

0 comments on commit a187e5c

Please sign in to comment.