name: Build CI # on: [push] on: push: tags: - "v*" branches: - master paths: - "lib/**" - ".gitea/**" jobs: AMD64: name: AMD64 Build runs-on: linux-amd64 steps: - name: Checkout code uses: actions/checkout@v4 with: channel: master - name: Generate Pub Hash uses: https://gitea.com/actions/go-hashfiles@v0.0.1 id: pub-hash with: patterns: pubspec.lock - name: Cache Pub Dependencies uses: https://gitea.com with: path: | ~/.pub-cache key: ${{ runner.os }}-pub-${{ steps.pub-hash.outputs.hash }} restore-keys: | ${{ runner.os }}-pub- - name: Install Framework Dependencies run: | sudo apt-get update -y sudo apt install -y ninja-build cmake clang libgtk-3-dev - name: Install Flutter uses: subosito/flutter-action@v2 with: channel: master flutter-version: 3.38.9 cache: true - name: Check Flutter Installation run: flutter doctor -v - name: Get Project Dependencies run: flutter pub get # - name: Analyze project # run: flutter analyze # - name: Test project # run: flutter test - name: Build App run: flutter build linux - name: Build AppImage uses: AppImageCrafters/build-appimage-action@master with: recipe: configs/AppImageBuilder_amd64.yml - name: print built images run: ls -hla - name: Save Artifacts uses: actions/upload-artifact@v3 with: name: Prod-${{ github.ref_type == 'v*' && github.ref_name || 'master' }}-x86_64.AppImage path: Prod-latest-x86_64.AppImage - name: Create New Release uses: akkuman/gitea-release-action@v1 with: files: Prod-latest-x86_64.AppImage prerelease: ${{ github.ref_type != 'v*' }}