From d864f7e4722f9c1b84649b1d7910259445a1130d Mon Sep 17 00:00:00 2001 From: Martin Clauss Date: Fri, 8 Mar 2024 15:17:53 +0100 Subject: [PATCH] Windows build test2 --- .github/workflows/release.yaml | 105 ++------------------------------- 1 file changed, 6 insertions(+), 99 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 419d1023b..efd686624 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -1,8 +1,8 @@ -name: Isar release +name: Isar release - test on: push: - tags: + branches: - "*" jobs: @@ -12,30 +12,9 @@ jobs: fail-fast: false matrix: include: - - os: ubuntu-latest - artifact_name: libisar_android_arm64.so - script: build_android.sh - - os: ubuntu-latest - artifact_name: libisar_android_armv7.so - script: build_android.sh armv7 - - os: ubuntu-latest - artifact_name: libisar_android_x64.so - script: build_android.sh x64 - - os: macos-latest - artifact_name: isar_ios.xcframework.zip - script: build_ios.sh - - os: ubuntu-20.04 - artifact_name: libisar_linux_x64.so - script: build_linux.sh x64 - - os: macos-latest - artifact_name: libisar_macos.dylib - script: build_macos.sh - os: windows-latest artifact_name: isar_windows_x64.dll script: build_windows.sh x64 - - os: ubuntu-latest - artifact_name: isar.wasm - script: build_wasm.sh runs-on: ${{ matrix.os }} permissions: contents: write @@ -43,81 +22,9 @@ jobs: - uses: actions/checkout@v3 - name: Prepare Build uses: ./.github/actions/prepare-build - - name: Set Isar Version + - name: Set env run: echo "ISAR_VERSION=${{ github.ref_name }}" >> $GITHUB_ENV + - name: Checkmake + run: which make - name: Build binary - run: bash tool/${{ matrix.script }} - - name: Upload binary - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: ${{ matrix.artifact_name }} - asset_name: ${{ matrix.artifact_name }} - tag: ${{ github.ref }} - - testlab: - needs: build_binaries - uses: ./.github/workflows/testlab.yaml - secrets: inherit - - build_inspector: - name: Build Inspector - needs: testlab - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: subosito/flutter-action@v2 - - name: Build - run: flutter build web --base-href /${{ github.ref_name }}/ --no-tree-shake-icons - working-directory: packages/isar_inspector - - name: Deploy to GitHub Pages - uses: JamesIves/github-pages-deploy-action@v4 - with: - folder: packages/isar_inspector/build/web - repository-name: isar/inspector - token: ${{ secrets.TOKEN }} - target-folder: ${{ github.ref_name }} - clean: false - - publish: - name: Publish - needs: build_inspector - runs-on: ubuntu-latest - permissions: - id-token: write - steps: - - uses: actions/checkout@v3 - - uses: subosito/flutter-action@v2 - - uses: actions/setup-node@v3 - with: - node-version: "18" - - name: Wait for tests to succeed - uses: lewagon/wait-on-check-action@v1.3.1 - with: - ref: ${{ github.ref }} - running-workflow-name: "Publish" - repo-token: ${{ secrets.GITHUB_TOKEN }} - wait-interval: 10 - - name: Set Isar Version - run: echo "ISAR_VERSION=${{ github.ref_name }}" >> $GITHUB_ENV - - name: Download Binaries - run: sh tool/download_binaries.sh - - name: Adjust Version - run: find . -type f -exec sed -i "s/0.0.0-placeholder/${{ github.ref_name }}/g" {} + - - name: pub.dev credentials - run: | - mkdir -p $HOME/.config/dart - echo '${{ secrets.PUB_JSON }}' >> $HOME/.config/dart/pub-credentials.json - - uses: JS-DevTools/npm-publish@v2 - with: - token: ${{ secrets.NPM_TOKEN }} - - name: Publish isar - run: | - dart pub get - dart pub publish --force - working-directory: packages/isar - - name: Publish isar_flutter_libs - run: | - flutter pub get - flutter pub publish --force - working-directory: packages/isar_flutter_libs + run: bash tool/${{ matrix.script }} \ No newline at end of file