File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,8 +2,9 @@ on: [push]
22
33jobs :
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
Original file line number Diff line number Diff line change @@ -9,6 +9,8 @@ Install HHVM and running your Hack code. Makesure `Ubuntu version 22.04` or `20.
99``` yml
1010
1111runs-on : ubuntu-22.04
12+ container :
13+ image : ubuntu:20.04
1214
1315steps :
1416 - name : Checkout code
Original file line number Diff line number Diff line change @@ -2,13 +2,9 @@ name: setup-hacklang
22description : Install HHVM and set up the Hack programming language environment
33author : sushil
44inputs :
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
1410branding :
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
You can’t perform that action at this time.
0 commit comments