Skip to content

Merge branch 'master' into 2nd-cufr #83

Merge branch 'master' into 2nd-cufr

Merge branch 'master' into 2nd-cufr #83

# Copyright (C) 2023-2024, Advanced Micro Devices, Inc. All rights reserved.
#
# Author: Eddie Hung, AMD
#
# SPDX-License-Identifier: MIT
#
name: package-and-test-container
on:
push:
pull_request:
jobs:
package:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: 'recursive'
- run: |
make distclean-and-package-submission
- uses: actions/upload-artifact@v4
with:
name: cufr_submission.tar.gz
compression-level: 0
path: |
cufr_submission*.tar.gz
test-container:
runs-on: ubuntu-latest
needs: package
steps:
- name: Setup Apptainer
env:
APPTAINER_VERSION: '1.2.5'
run: |
wget https://github.com/apptainer/apptainer/releases/download/v${APPTAINER_VERSION}/apptainer_${APPTAINER_VERSION}_amd64.deb
sudo dpkg -i apptainer_${APPTAINER_VERSION}_amd64.deb || true
sudo apt-get -f install
- uses: actions/download-artifact@v4
with:
name: cufr_submission.tar.gz
- name: make test-container
run: |
mkdir cufr
cd cufr
tar xvzf ../cufr_submission*.tar.gz
make test-container
- uses: actions/upload-artifact@v4
with:
name: cufr_container.sif
compression-level: 0
path: |
cufr/*.sif