Skip to content

use libgit for cloning; minor fixes #804

use libgit for cloning; minor fixes

use libgit for cloning; minor fixes #804

Workflow file for this run

name: CI
on: [push, pull_request]
jobs:
ubuntu:
runs-on: ubuntu-latest
steps:
- name: Checkout V
uses: actions/checkout@v3
with:
repository: vlang/v
- name: Checkout gitly
uses: actions/checkout@v3
with:
path: gitly
- name: Install Dependencies
run: sudo apt install libsqlite3-dev libgit2-dev
- name: Install Markdown
uses: actions/checkout@v3
with:
repository: vlang/markdown
path: vlib/markdown
- name: Install PCRE
uses: actions/checkout@v3
with:
repository: vlang/pcre
path: vlib/pcre
- name: Build V
run: |
make
sudo ./v symlink
- name: Compile gitly
run: |
cd gitly
v .
- name: Compile gitly with -autofree
run: |
cd gitly
v -autofree .
- name: Compile gitly with -prod
run: |
cd gitly
v -prod .
- name: Compile CSS from SCSS files
uses: gha-utilities/[email protected]
with:
source: gitly/src/static/css/gitly.scss
destination: gitly/src/static/css/gitly.css
- name: Run all tests
run: |
cd gitly
v -d use_openssl test .
- name: Run tests/first_run.v
run: |
cd gitly
v -g run tests/first_run.v
macos:
runs-on: macos-latest
steps:
- name: Checkout V
uses: actions/checkout@v3
with:
repository: vlang/v
- name: Checkout gitly
uses: actions/checkout@v3
with:
path: gitly
- name: Install Markdown
uses: actions/checkout@v3
with:
repository: vlang/markdown
path: vlib/markdown
- name: Install PCRE
uses: actions/checkout@v3
with:
repository: vlang/pcre
path: vlib/pcre
- name: Install libgit2
run: brew install libgit2
- name: Build V
run: |
make
./v symlink
- name: Compile gitly
run: |
cd gitly
v .
- name: Compile gitly with -autofree
run: |
cd gitly
v -autofree .
- name: Compile gitly with -prod
run: |
cd gitly
v -prod .
- name: Compile CSS from SCSS files
uses: gha-utilities/[email protected]
with:
source: gitly/src/static/css/gitly.scss
destination: gitly/src/static/css/gitly.css
- name: Run all tests
run: |
cd gitly
v -d use_openssl test .
- name: Run tests/first_run.v
run: |
cd gitly
v -g run tests/first_run.v
# windows-msvc:
# runs-on: windows-latest
# env:
# VFLAGS: -cc msvc
# steps:
# - name: Checkout V
# uses: actions/checkout@v3
# with:
# repository: vlang/v
# - name: Checkout gitly2
# uses: actions/checkout@v3
# with:
# path: gitly
# - name: Install SQLite
# run: |
# .github\workflows\windows-install-sqlite.bat
# dir thirdparty\sqlite\
# - name: Install Markdown
# uses: actions/checkout@v3
# with:
# repository: vlang/markdown
# path: vlib/markdown
# - name: Install PCRE
# uses: actions/checkout@v3
# with:
# repository: vlang/pcre
# path: vlib/pcre
# - name: Build V
# run: |
# ./make.bat -msvc -skip-path
# - name: Compile gitly
# run: |
# .\v.exe gitly\
windows-gcc:
runs-on: windows-latest
env:
VFLAGS: -cc gcc
steps:
- name: Checkout V
uses: actions/checkout@v3
with:
repository: vlang/v
- name: Checkout gitly
uses: actions/checkout@v3
with:
path: gitly
- name: Install SQLite
run: |
.github\workflows\windows-install-sqlite.bat
dir thirdparty\sqlite\
- name: Install Markdown
uses: actions/checkout@v3
with:
repository: vlang/markdown
path: vlib/markdown
- name: Install PCRE
uses: actions/checkout@v3
with:
repository: vlang/pcre
path: vlib/pcre
- name: Build V
run: |
./make.bat -gcc
- name: Compile gitly
run: .\v.exe gitly
ubuntu-tcc:
runs-on: ubuntu-latest
env:
VFLAGS: -cc tcc -cflags -bt10
steps:
- name: Checkout V
uses: actions/checkout@v3
with:
repository: vlang/v
- name: Checkout gitly
uses: actions/checkout@v3
with:
path: gitly
- name: Install Dependencies
run: sudo apt install libsqlite3-dev libgit2-dev
- name: Install Markdown
uses: actions/checkout@v3
with:
repository: vlang/markdown
path: vlib/markdown
- name: Install PCRE
uses: actions/checkout@v3
with:
repository: vlang/pcre
path: vlib/pcre
- name: Build V
run: |
echo $VFLAGS
make
sudo ./v symlink
- name: Compile gitly with -autofree
run: |
cd gitly
v -autofree .
- name: Compile gitly
run: |
cd gitly
v .
- name: Compile CSS from SCSS files
uses: gha-utilities/[email protected]
with:
source: gitly/src/static/css/gitly.scss
destination: gitly/src/static/css/gitly.css
- name: Run all tests
run: |
cd gitly
v -d use_openssl test .
- name: Run tests/first_run.v
run: |
cd gitly
v -g run tests/first_run.v