-
Notifications
You must be signed in to change notification settings - Fork 10
55 lines (52 loc) · 1.5 KB
/
package_and_test-container.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# 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: |
wget -q https://github.com/Xilinx/fpga24_routing_contest/releases/latest/download/xcvu3p.device
make distclean-and-package-submission
- uses: actions/upload-artifact@v4
with:
name: cuckoo_submission.tar.gz
compression-level: 0
path: |
cuckoo_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: cuckoo_submission.tar.gz
- name: make test-container
run: |
mkdir cuckoo
cd cuckoo
tar xvzf ../cuckoo_submission*.tar.gz
make test-container
- uses: actions/upload-artifact@v4
with:
name: cuckoo_container.sif
compression-level: 0
path: |
cuckoo/*.sif