-
Notifications
You must be signed in to change notification settings - Fork 0
25 lines (25 loc) · 1.06 KB
/
ubuntu-build-and-test.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
name: Ubuntu Build and Test
on:
workflow_call:
jobs:
ubuntu_build_and_test:
name: Build and Test
runs-on: ubuntu-22.04
strategy:
matrix:
config: [debug, release]
steps:
- uses: actions/checkout@v4
- name: Ubuntu Build and Test (${{ matrix.config }})
run: |
mkdir -p ./ponyc
wget -q https://dl.cloudsmith.io/public/ponylang/releases/raw/versions/latest/ponyc-x86-64-unknown-linux-ubuntu22.04.tar.gz
tar xzf ponyc-x86-64-unknown-linux-ubuntu22.04.tar.gz --directory ./ponyc --strip-components=1
mkdir -p ./corral
wget -q https://dl.cloudsmith.io/public/ponylang/releases/raw/versions/latest/corral-x86-64-unknown-linux.tar.gz
tar xzf corral-x86-64-unknown-linux.tar.gz --directory ./corral --strip-components=1
export PATH=`pwd`/ponyc/bin:`pwd`/corral/bin:$PATH
corral fetch
PONYC=./ponyc/bin/ponyc make test config=${{ matrix.config }}
cd ./examples/calc
PONYC=../../ponyc/bin/ponyc make test config=${{ matrix.config }}