Make AVX layout to exclude NDIM==1, it does not work there. Also make #227
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: Deploy Apptainer container to GitHub release page under nightly release | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| inputs: | |
| build: | |
| description: 'Build the Apptainer containers' | |
| jobs: | |
| build_x86: | |
| if: "github.event_name == 'workflow_dispatch' || contains(github.event.head_commit.message, 'GENERATE SINGULARITY')" | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Cache Singularity deb | |
| uses: actions/cache@v3 | |
| with: | |
| path: singularity-ce_3.11.3-jammy_amd64.deb | |
| key: singularity-deb-3.11.3 | |
| - name: Install Singularity (x86) | |
| run: | | |
| if [ ! -f singularity-ce_3.11.3-jammy_amd64.deb ]; then | |
| wget https://github.com/sylabs/singularity/releases/download/v3.11.3/singularity-ce_3.11.3-jammy_amd64.deb | |
| fi | |
| sudo dpkg -i singularity-ce_3.11.3-jammy_amd64.deb | |
| singularity --version | |
| - name: Build x86 container | |
| run: | | |
| cd singularity | |
| sudo singularity build hilapp-x86.sif hilapp_local.def | |
| cd .. | |
| ls -lh ./singularity/hilapp-x86.sif | |
| - name: Upload x86 SIF artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: hilapp-x86-sif | |
| path: ./singularity/hilapp-x86.sif | |
| build_arm: | |
| if: "github.event_name == 'workflow_dispatch' || contains(github.event.head_commit.message, 'GENERATE SINGULARITY')" | |
| runs-on: ubuntu-24.04-arm | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Apptainer (ARM) | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install -y containernetworking-plugins wget | |
| BASE_URL="http://ftp.de.debian.org/debian/pool/main/a/apptainer" | |
| ARCH="arm64" | |
| LATEST=$(curl -s $BASE_URL/ | grep -oP "apptainer_[0-9]+\.[0-9]+\.[0-9]+-[0-9]+_${ARCH}\.deb" | sort -V | tail -n1) | |
| wget "$BASE_URL/$LATEST" | |
| sudo dpkg -i $LATEST | |
| apptainer --version | |
| - name: Build ARM container | |
| run: | | |
| cd singularity | |
| sudo apptainer build hilapp-arm.sif hilapp_local.def | |
| cd .. | |
| ls -lh ./singularity/hilapp-arm.sif | |
| - name: Upload ARM SIF artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: hilapp-arm-sif | |
| path: ./singularity/hilapp-arm.sif | |
| release: | |
| runs-on: ubuntu-latest | |
| needs: [build_x86, build_arm] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Download x86 artifact | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: hilapp-x86-sif | |
| path: ./singularity/ | |
| - name: Download ARM artifact | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: hilapp-arm-sif | |
| path: ./singularity/ | |
| - name: Publish Nightly Release | |
| uses: pyTooling/Actions/releaser@main | |
| with: | |
| tag: Nightly | |
| rm: true | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| files: | | |
| ./singularity/hilapp-x86.sif | |
| ./singularity/hilapp-arm.sif | |
| snapshots: true |