Skip to content

Commit e0a5544

Browse files
Update
1 parent 38d128c commit e0a5544

3 files changed

Lines changed: 16 additions & 11 deletions

File tree

‎.github/workflows/example.yml‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ on: [push]
22

33
jobs:
44
example:
5-
runs-on: ubuntu-22.04
6-
5+
runs-on: ubuntu-latest
6+
container:
7+
image: ubuntu:20.04
78

89
steps:
910
- name: Checkout

‎README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ Install HHVM and running your Hack code. Makesure `Ubuntu version 22.04` or `20.
99
```yml
1010

1111
runs-on: ubuntu-22.04
12+
container:
13+
image: ubuntu:20.04
1214

1315
steps:
1416
- name: Checkout code

‎action.yml‎

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,9 @@ name: setup-hacklang
22
description: Install HHVM and set up the Hack programming language environment
33
author: sushil
44
inputs:
5-
hack-version:
5+
hhvm-version:
66
description: The version of HHVM/Hack to install
7-
required: true
8-
default: latest
9-
debug:
10-
description: Code Debugging
11-
required: false
7+
required: false
128
default: false
139

1410
branding:
@@ -21,8 +17,14 @@ runs:
2117
- shell: bash
2218
run: ${{ github.action_path }}/scripts/composer.sh
2319

24-
- shell: bash
20+
- name: Install HHVM & Hack
21+
shell: bash
2522
run: |
2623
sudo apt-get update
27-
dpkg --print-architecture
28-
sudo apt search hacklang
24+
sudo apt-get install -y software-properties-common apt-transport-https curl gnupg
25+
sudo mkdir -p /usr/share/keyrings
26+
curl -fsSL https://dl.hhvm.com/conf/hhvm.gpg.key | sudo gpg --dearmor -o /usr/share/keyrings/hhvm-archive-keyring.gpg
27+
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/hhvm-archive-keyring.gpg] https://dl.hhvm.com/ubuntu $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/hhvm.list > /dev/null
28+
sudo apt-get update
29+
sudo apt-get install -y hhvm
30+
sudo update-rc.d hhvm defaults

0 commit comments

Comments
 (0)