Skip to content

Update/fix Actions; add open-source links/publications (#95) #53

Update/fix Actions; add open-source links/publications (#95)

Update/fix Actions; add open-source links/publications (#95) #53

# 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: rwroute_submission.tar.gz
compression-level: 0
path: |
rwroute_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: rwroute_submission.tar.gz
- name: make test-container
run: |
mkdir rwroute
cd rwroute
tar xvzf ../rwroute_submission*.tar.gz
make test-container
- uses: actions/upload-artifact@v4
with:
name: rwroute_container.sif
compression-level: 0
path: |
rwroute/*.sif