BUG: Add U to required fluxes #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deployment | |
| permissions: | |
| contents: write | |
| packages: write | |
| actions: read | |
| on: | |
| push: | |
| branches: | |
| - "main" | |
| - "master" | |
| - "staging" | |
| - "develop" | |
| concurrency: | |
| group: blastfoam-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| version: | |
| name: Semantic Version | |
| runs-on: ubuntu-24.04 | |
| outputs: | |
| version: ${{ steps.set.outputs.version }} | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| - name: Set up Node.js | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 'lts/*' | |
| - name: Run Semantic Release | |
| id: semantic | |
| uses: cycjimmy/semantic-release-action@v4 | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.BLASTFOAM_PAT }} | |
| - name: Set Version Output | |
| id: set | |
| run: echo "version=${VERSION}" >> "$GITHUB_OUTPUT" | |
| env: | |
| VERSION: ${{ env.VERSION }} | |
| build: | |
| name: Build BlastFoam | |
| runs-on: ubuntu-24.04 | |
| needs: [version] | |
| if: needs.version.outputs.version != '' | |
| defaults: | |
| run: | |
| working-directory: blastfoam-src | |
| shell: bash | |
| steps: | |
| - name: Checkout blastFOAM | |
| uses: actions/checkout@v3 | |
| with: | |
| path: blastfoam-src | |
| ref: ${{ github.ref }} | |
| - name: Build Tar for Cache Key | |
| run: | | |
| tar -czf blastfoam-src/checksum.tar.gz --mtime='UTC 2019-01-01' --group=0 --owner=0 \ | |
| --numeric-owner --sort=name -C blastfoam-src Makefile applications debian etc src | |
| - name: Restore .deb from cache | |
| id: deb-cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: blastfoam-src/blastfoam_*.deb | |
| key: blastfoam-deb-${{ hashFiles('blastfoam-src/checksum.tar.gz') }} | |
| - name: Install packaging and build dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y \ | |
| devscripts \ | |
| build-essential \ | |
| fakeroot \ | |
| lintian \ | |
| debhelper \ | |
| dh-make \ | |
| quilt \ | |
| equivs | |
| - name: Build Debian Package | |
| if: steps.deb-cache.outputs.cache-hit != 'true' | |
| run: | | |
| echo "Building .deb package..." | |
| debuild --no-lintian -i -nc -us -uc -b --jobs=auto | |
| - name: Save .deb to cache | |
| if: steps.deb-cache.outputs.cache-hit != 'true' | |
| uses: actions/cache@v4 | |
| with: | |
| path: blastfoam-src/blastfoam_*.deb | |
| key: blastfoam-deb-${{ hashFiles('blastfoam-src/checksum.tar.gz') }} | |
| - name: List Artifacts | |
| run: | | |
| echo "Output files:" | |
| ls -lh ../blastfoam_* | |
| - name: Upload Debian Package Artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: blastfoam-package | |
| path: | | |
| blastfoam-src/blastfoam_*.deb | |
| blastfoam-src/blastfoam_*.changes | |
| blastfoam-src/blastfoam_*.build | |
| retention-days: 7 | |
| release-deb: | |
| name: Add Debian Package to Release | |
| needs: | |
| - build | |
| - version | |
| runs-on: ubuntu-24.04 | |
| env: | |
| GH_TOKEN: ${{ secrets.BLASTFOAM_PAT }} | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| with: | |
| ref: ${{ github.ref }} | |
| - name: Download Debian package artifact | |
| uses: actions/download-artifact@v3 | |
| with: | |
| name: blastfoam-package | |
| - name: Verify package files | |
| run: ls -lh blastfoam_${{ needs.version.outputs.version }}*.deb | |
| - name: Upload Debian package to GitHub release | |
| run: | | |
| if ! gh release view "v${{ needs.version.outputs.version }}" > /dev/null 2>&1; then | |
| gh release create "v${{ needs.version.outputs.version }}" --title "Release v${{ needs.version.outputs.version }}" --notes "Automated release of BlastFoam version ${{ needs.version.outputs.version }}" | |
| fi | |
| gh release upload "v${{ needs.version.outputs.version }}" blastfoam_${{ needs.version.outputs.version }}*.deb --clobber | |
| echo "Debian package uploaded to release v${{ needs.version.outputs.version }}" | |
| build-docker: | |
| name: Build Docker Image | |
| runs-on: ubuntu-24.04 | |
| needs: | |
| - build | |
| - version | |
| defaults: | |
| run: | |
| shell: bash | |
| steps: | |
| - name: Checkout blastFOAM source | |
| uses: actions/checkout@v3 | |
| with: | |
| ref: ${{ github.ref }} | |
| - name: Download Debian Package artifact | |
| uses: actions/download-artifact@v3 | |
| with: | |
| name: blastfoam-package | |
| path: ${{ github.workspace }} | |
| - name: Set up QEMU (for multi-platform builds) | |
| uses: docker/setup-qemu-action@v2 | |
| - name: Set up Docker Buildx | |
| uses: docker/setup-buildx-action@v2 | |
| - name: Log in to GitHub Container Registry | |
| uses: docker/login-action@v2 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.BLASTFOAM_PAT }} | |
| - name: Build and push Docker image | |
| uses: docker/build-push-action@v4 | |
| with: | |
| context: ${{ github.workspace }} | |
| push: true | |
| tags: ghcr.io/synthetik-technologies/blastfoam-dev:${{ needs.version.outputs.version }} | |
| cache-from: type=gha | |
| cache-to: type=gha,mode=max | |
| platforms: linux/amd64 | |
| push-public-release: | |
| if: github.ref_name == 'main' | |
| needs: | |
| - version | |
| - build | |
| - build-docker | |
| - release-deb | |
| uses: ./.github/workflows/public-deployment.yaml | |
| with: | |
| prod_repo: synthetik-technologies/blastfoam | |
| tag: ${{ needs.version.outputs.version }} | |
| secrets: inherit |