-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (42 loc) · 1.36 KB
/
build.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
name: Linux build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
cpu_target: [ "000", "02060", "030", "040", "060", "col" ]
cross_tool: [ "m68k-atari-mint" ]
steps:
- uses: actions/checkout@v4
- name: Install SSH keys
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
env:
SSH_ID: ${{ secrets.SSH_ID }}
run: ./.scripts/install_ssh_id.sh
- name: Setup environment
env:
PROJECT_VERSION: "2.7"
CPU_TARGET: ${{ matrix.cpu_target }}
CROSS_TOOL: ${{ matrix.cross_tool }}
run: ./.scripts/setup_env.sh
- name: Install packages
run: |
SYSROOT_DIR="/" ./.scripts/install-freemint.sh binutils gcc mintbin
./.scripts/install-freemint.sh mintlib fdlibm gemlib cflib
./.scripts/install-hcp.sh
- name: build
run: ./.scripts/build.sh
- name: deploy
if: ${{ github.event_name == 'push' || github.event_name == 'workflow_dispatch' }}
env:
COMMITER_NAME: ${{ github.event.commits[0].author.name }}
COMMITER_EMAIL: ${{ github.event.commits[0].author.email }}
run: ./.scripts/deploy.sh