diff --git a/.github/workflows/minimal-usage.yml b/.github/workflows/minimal-usage.yml index 1a24a88..4872693 100644 --- a/.github/workflows/minimal-usage.yml +++ b/.github/workflows/minimal-usage.yml @@ -1,5 +1,8 @@ name: ubuntu-minimal_usage on: + schedule: + - cron: '0 0 * * *' # Runs once a day at midnight UTC + workflow_dispatch: # Allows manual triggering push: branches: - main @@ -10,9 +13,15 @@ on: permissions: read-all jobs: minimal_usage: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: + - ubuntu-24.04-arm + - ubuntu-24.04 + - ubuntu-latest steps: - - uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6 + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - uses: ./ - name: Test EESSI run: | diff --git a/README.md b/README.md index 8016a90..84cb79d 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # GitHub Action: eessi/github-action-eessi -[![ubuntu](https://github.com/eessi/github-action-eessi/workflows/ubuntu/badge.svg)](https://github.com/eessi/github-action-eessi/actions?query=workflow%3Aubuntu) +[![ubuntu](https://github.com/eessi/github-action-eessi/workflows/ubuntu-minimal_usage/badge.svg)](https://github.com/eessi/github-action-eessi/actions?query=workflow%3Aubuntu-minimal_usage) This GitHub Action sets up the [European Environment for Scientific Software Installations](https://eessi.github.io/docs/) (EESSI) for use in GitHub Workflows. EESSI is like a streaming service for software installations: you have access to a large catalogue of software provided by EESSI, however the installations are only cached on your system once you try to access them. @@ -21,6 +21,25 @@ jobs: ubuntu-minimal: runs-on: ubuntu-latest steps: + - uses: actions/checkout@v4 + - uses: eessi/github-action-eessi@v3 + - name: Test EESSI + run: | + module avail + shell: bash +``` +and one can also easily create a workflow that will run on both `x86_64` and `Arm` architectures: +```yaml +jobs: + ubuntu-minimal: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: + - ubuntu-24.04-arm + - ubuntu-24.04 + steps: + - uses: actions/checkout@v4 - uses: eessi/github-action-eessi@v3 - name: Test EESSI run: | @@ -34,7 +53,8 @@ jobs: macOS-minimal: runs-on: macos-latest steps: - - uses: eessi/github-action-eessi@v2 + - uses: actions/checkout@v4 + - uses: eessi/github-action-eessi@v3 - name: Test EESSI run: | module avail @@ -58,6 +78,7 @@ jobs: build: runs-on: ubuntu-latest steps: + - uses: actions/checkout@v4 - uses: eessi/github-action-eessi@v3 - name: Test EESSI run: | @@ -76,6 +97,7 @@ jobs: build: runs-on: ubuntu-latest steps: + - uses: actions/checkout@v4 - uses: eessi/github-action-eessi@v3 - name: Test EESSI run: | diff --git a/action.yml b/action.yml index 3acdec0..7ba0784 100644 --- a/action.yml +++ b/action.yml @@ -16,7 +16,7 @@ inputs: runs: using: "composite" steps: - - uses: cvmfs-contrib/github-action-cvmfs@cec5c94a14714ab02980682fce8ab3de238401f9 # v4.0 + MacOS support + - uses: cvmfs-contrib/github-action-cvmfs@204fd621e07d10a8cce4e73b9858b11bf6b95647 # v5.0 + MacOS support with: # Can't use config package for macOS but our repos are available with the default configuration anyway # cvmfs_config_package: https://github.com/EESSI/filesystem-layer/releases/download/latest/cvmfs-config-eessi_latest_all.deb