-
Notifications
You must be signed in to change notification settings - Fork 1
61 lines (54 loc) · 1.82 KB
/
make.yml
File metadata and controls
61 lines (54 loc) · 1.82 KB
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
name: Win/Mac/Linux
on:
push:
branches:
- binutils-2_45_1-cedev
jobs:
build:
strategy:
fail-fast: false
matrix:
runs-on: [ubuntu-22.04, macos-15-intel, macos-14, windows-latest]
include:
- nul: /dev/null
- runs-on: macos-15-intel
arch-suffix: "-intel"
install-output-ext: "dmg"
- runs-on: macos-14
arch-suffix: "-arm"
install-output-ext: "dmg"
- runs-on: windows-latest
env: "env:"
exe: .exe
nul: nul
install-output-ext: "zip"
- runs-on: ubuntu-22.04
install-output-ext: "tar.gz"
runs-on: ${{matrix.runs-on}}
steps:
- name: Prepare Build Environment
run: cmake -E echo >> $${{matrix.env}}GITHUB_PATH
- name: Checkout binutils
uses: actions/checkout@v4
with:
path: ${{github.workspace}}
submodules: recursive
persist-credentials: false
- name: Build binutils
run: |
cd ${{github.workspace}}
CC=gcc ./configure --target=z80-none-elf --prefix=${{github.workspace}}/binutils
make -j4 && make install -j4
- name: "[Linux] Tar install"
if: runner.os == 'Linux'
run: |
tar -C ${{github.workspace}} -czvf binutils-${{runner.os}}.${{matrix.install-output-ext}} binutils
- name: "[Windows] Zip install"
if: runner.os == 'Windows'
run: |
cd ${{github.workspace}} && 7z a -tzip binutils-${{runner.os}}.${{matrix.install-output-ext}} binutils
- name: Upload CEdev
uses: actions/upload-artifact@v4
with:
name: binutils-${{runner.os}}${{matrix.arch-suffix}}
path: binutils-${{runner.os}}${{matrix.arch-suffix}}.${{matrix.install-output-ext}}