-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
55 lines (46 loc) · 1.27 KB
/
action.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
name: '2.11BSD Action'
description: 'Get a shell in 2.11BSD on a SIMH PDP11'
inputs:
path:
description: "Directory to copy sources to"
required: false
default: "/github"
run:
description: "Your shell command block"
required: true
patch_level:
description: 457 to 479
required: false
default: 479
outputs:
blank:
description: "dunno if i need this yet"
runs:
using: 'composite'
steps:
- name: checkout
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- name: install simh and rsync
shell: bash
run: |
sudo apt install -y expect curl simh rsync
- name: build and install retro-fuse
shell: bash
run: |
sudo apt install -y libfuse-dev build-essential
git clone https://github.com/jaylogue/retro-fuse.git
cd retro-fuse
make
sudo cp bsd211fs /usr/bin/bsd211fs
cd ..
rm -rf retro-fuse
- name: download 2.11bsd image
shell: bash
run: |
curl -so ../ci.dsk.gz https://asjackson-211bsd-ci.s3.fr-par.scw.cloud/211bsd-ci-${{ inputs.patch_level }}.dsk.gz
- name: run command block
shell: bash
run: |
sudo $GITHUB_ACTION_PATH/runpdp.sh "${{ inputs.run }}" "${{ inputs.path }}"