-
Notifications
You must be signed in to change notification settings - Fork 19
81 lines (77 loc) · 2.01 KB
/
ubuntu.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
name: Build and test on Ubuntu
on:
push:
branches: [ "master", "devel", "citest" ]
tags:
- '**'
pull_request:
branches: [ "master", "devel" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: install prereq.
run:
sudo apt-get update &&
sudo apt-get install -y fpc
- name: build
run: make
- name: list build binaries
run: ls -l bin/
- uses: actions/upload-artifact@v4
with:
name: mp-bin-ubuntu
path: |
bin/
build-mads:
runs-on: ubuntu-latest
steps:
- name: install prereq.
run:
sudo apt-get update &&
sudo apt-get install -y fpc
- name: get sources
run: wget https://github.com/tebe6502/Mad-Assembler/archive/refs/tags/2.1.5.tar.gz
- name: extract sources
run: tar xvf 2.1.5.tar.gz
- name: build
run: cd Mad-Assembler-2.1.5 ; fpc -Mdelphi -vh -O3 mads.pas
- uses: actions/upload-artifact@v4
with:
name: mads-bin-ubuntu
path: |
Mad-Assembler-2.1.5/mads
test:
needs: [ build, build-mads ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: mp-bin-ubuntu
path: bin
- uses: actions/download-artifact@v4
with:
name: mads-bin-ubuntu
path: mads
- name: install mads
run: sudo cp -v mads/mads /usr/local/bin/mads
- name: set permissions
run: sudo chmod a+x bin/mp /usr/local/bin/mads
- name: list binaries from the artifacts
run: ls -l bin/ mads/ /usr/local/bin/mads
- name: setup test environment
run: make test-setup
- name: run tests
run: make test
- name: list all files
run: find .
- name: store logs from failed tests
if: failure()
uses: actions/upload-artifact@v4
with:
name: mp-failed-test-logs
path: |
test/test_temp/*
test/*.log