ci: refactor installing go and use the github action

This commit is contained in:
Derrick Hammer 2023-08-10 01:02:48 -04:00
parent cfdd7748d7
commit 0625b1acbb
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 5 additions and 12 deletions

View File

@ -21,25 +21,18 @@ jobs:
with:
node-version: 18.x
cache: 'npm'
- name: Setup Golang
uses: actions/setup-go@v4
with:
go-version: 1.19
- name: Setup Golang
run: |
sudo apt-get update && sudo apt-get install bsdmainutils -y bison;
bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer);
source ~/.gvm/scripts/gvm || true;
gvm install go1.4 -B;
gvm use go1.4 --default;
gvm install go1.19 -B;
VERSION=0.28.1;
TINYGO="tinygo_${VERSION}_amd64.deb";
wget -q https://github.com/tinygo-org/tinygo/releases/download/v$VERSION/$TINYGO;
sudo dpkg -i $TINYGO && rm $TINYGO;
- name: Fetch Wasm Deps
run: |
source ~/.gvm/scripts/gvm || true;
gvm use go1.19 --default || true;
set -x;
cd src/golang;
go get;
run: cd src/golang && go get
- run: npm ci
- run: npm run build --if-present
- name: Install SSH key