fix: ci
This commit is contained in:
1 parent
022692ea18
commit
c3fc9396d4
2 files changed
+11
-2
No files matched your search
@@ -96,11 +96,15 @@ jobs:
|
|||||||
go-version: ${{ env.GO_VERSION }}
|
go-version: ${{ env.GO_VERSION }}
|
||||||
cache: true
|
cache: true
|
||||||
|
|
||||||
|
# checksum.extra_files глобит mobile-dist, а снапшот идёт без mobile-джоб
|
||||||
|
- name: Stub mobile artifacts
|
||||||
|
run: mkdir -p mobile-dist && touch mobile-dist/freeturn.aar mobile-dist/freeturn-sources.jar mobile-dist/Mobile.xcframework.zip
|
||||||
|
|
||||||
- uses: goreleaser/goreleaser-action@v7.2.2
|
- uses: goreleaser/goreleaser-action@v7.2.2
|
||||||
with:
|
with:
|
||||||
distribution: goreleaser
|
distribution: goreleaser
|
||||||
version: ${{ env.GORELEASER_VERSION }}
|
version: ${{ env.GORELEASER_VERSION }}
|
||||||
args: release --snapshot --clean --skip=publish,sign,docker,announce,sbom,checksum
|
args: release --snapshot --clean --skip=publish,sign,docker,announce,sbom
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v7.0.1
|
- uses: actions/upload-artifact@v7.0.1
|
||||||
with:
|
with:
|
||||||
|
|||||||
+6
-1
@@ -25,7 +25,12 @@ tasks:
|
|||||||
build:all:
|
build:all:
|
||||||
desc: Cross-compile all targets via goreleaser snapshot
|
desc: Cross-compile all targets via goreleaser snapshot
|
||||||
cmds:
|
cmds:
|
||||||
- goreleaser release --snapshot --clean --skip=publish,sign,checksum
|
# checksum.extra_files глобит mobile-dist, а снапшот идёт без mobile-таргетов
|
||||||
|
- cmd: mkdir -p mobile-dist && touch mobile-dist/freeturn.aar mobile-dist/freeturn-sources.jar mobile-dist/Mobile.xcframework.zip
|
||||||
|
platforms: [linux, darwin]
|
||||||
|
- cmd: powershell -Command "New-Item -ItemType Directory -Force mobile-dist > $null; @('freeturn.aar','freeturn-sources.jar','Mobile.xcframework.zip') | ForEach-Object { if (-not (Test-Path \"mobile-dist/$_\")) { New-Item -ItemType File \"mobile-dist/$_\" > $null } }"
|
||||||
|
platforms: [windows]
|
||||||
|
- goreleaser release --snapshot --clean --skip=publish,sign
|
||||||
|
|
||||||
build:ios:
|
build:ios:
|
||||||
desc: Build iOS XCFramework to dist/Mobile.xcframework
|
desc: Build iOS XCFramework to dist/Mobile.xcframework
|
||||||
|
|||||||
Reference in new issue
Block a user