libportal/.circleci/config.yml

70 lines
2.7 KiB
YAML
Raw Normal View History

2023-06-16 01:57:25 +00:00
version: 2.1
orbs:
node: circleci/node@5.1.0
ssh: credijusto/ssh@0.5.2
workflows:
release:
jobs:
2023-06-23 05:49:20 +00:00
- node/run:
name: build
npm-run: build
pre-steps:
2023-06-23 06:13:40 +00:00
- run:
name: Setup Golang
2023-06-23 05:50:59 +00:00
command: >
2023-06-23 05:55:35 +00:00
sudo apt-get update;
2023-06-23 05:54:56 +00:00
sudo apt-get install bison;
2023-06-23 05:54:17 +00:00
bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer);
source ~/.gvm/scripts/gvm;
2023-06-23 05:57:16 +00:00
gvm install go1.4 -B;
2023-06-23 05:54:17 +00:00
gvm use go1.4 --default;
gvm install go1.8 -B;
2023-06-23 05:54:17 +00:00
gvm use go1.8 --default;
VERSION=0.28.1;
2023-06-23 06:02:33 +00:00
TINYGO="tinygo_${VERSION}_amd64.deb";
2023-06-23 05:59:48 +00:00
wget https://github.com/tinygo-org/tinygo/releases/download/v$VERSION/$TINYGO;
2023-06-23 05:54:17 +00:00
sudo dpkg -i $TINYGO && rm $TINYGO;
2023-06-23 06:07:06 +00:00
setup:
2023-06-23 06:08:14 +00:00
- run:
2023-06-23 06:11:43 +00:00
name: Fetch Wasm Deps
2023-06-23 06:07:06 +00:00
command: >
cd src/golang;
go get;
2023-06-23 05:49:20 +00:00
post-steps:
- persist_to_workspace:
root: .
paths:
- lib/
filters:
branches:
2023-06-16 01:57:25 +00:00
only:
- master
- develop
- /^develop-.*$/
- node/run:
name: release
2023-06-20 04:56:34 +00:00
npm-run: semantic-release
2023-06-16 01:57:25 +00:00
requires:
- build
filters:
branches:
only:
- master
- develop
- /^develop-.*$/
context:
- publish
setup:
2023-06-20 05:20:36 +00:00
- attach_workspace:
at: ./
2023-06-16 01:57:25 +00:00
- add_ssh_keys:
fingerprints:
- "47:cf:a1:17:d9:81:8e:c5:51:e5:53:c8:33:e4:33:b9"
- ssh/ssh-add-host:
host_url: GITEA_HOST