Update/fix Actions; add open-source links/publications (#95) #53
This file contains 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
# 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 | |