ci fixes
							parent
							
								
									91ffeeb73b
								
							
						
					
					
						commit
						fb4b93dfc0
					
				| 
						 | 
				
			
			@ -2,22 +2,22 @@ name: CI
 | 
			
		|||
on: [push, pull_request]
 | 
			
		||||
jobs:
 | 
			
		||||
 | 
			
		||||
  v-fmt:
 | 
			
		||||
    runs-on: ubuntu-18.04
 | 
			
		||||
    steps:
 | 
			
		||||
    - uses: actions/checkout@v2
 | 
			
		||||
    - name: getting all branch metainfo from github
 | 
			
		||||
      run: |
 | 
			
		||||
          git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
 | 
			
		||||
          echo "Changed files compared to origin/master are:" && git diff --name-status origin/master HEAD -- '*.v'
 | 
			
		||||
    - name: Build v (there is no need for dependencies for fmt)
 | 
			
		||||
      run: make -j4
 | 
			
		||||
    - name: Build a production cmd/tools/vfmt
 | 
			
		||||
      run: ./v -prod -d vfmt cmd/tools/vfmt.v
 | 
			
		||||
    - name: Run v fmt -diff on only the changed files. Does NOT fail for now.
 | 
			
		||||
      run: git diff --name-status origin/master HEAD -- '*.v' |grep -v '^D'|rev|cut -f1|rev| xargs ./v fmt -noerror -diff
 | 
			
		||||
    - name: Run v test-fmt
 | 
			
		||||
      run: echo "TODO" #./v test-fmt
 | 
			
		||||
#  v-fmt:
 | 
			
		||||
#    runs-on: ubuntu-18.04
 | 
			
		||||
#    steps:
 | 
			
		||||
#    - uses: actions/checkout@v2
 | 
			
		||||
#    - name: getting all branch metainfo from github
 | 
			
		||||
#      run: |
 | 
			
		||||
#          git fetch --no-tags --prune --depth=1 origin +refs/heads/*:refs/remotes/origin/*
 | 
			
		||||
#          echo "Changed files compared to origin/master are:" && git diff --name-status origin/master HEAD -- '*.v'
 | 
			
		||||
#    - name: Build v (there is no need for dependencies for fmt)
 | 
			
		||||
#      run: make -j4
 | 
			
		||||
#    - name: Build a production cmd/tools/vfmt
 | 
			
		||||
#      run: ./v -prod -d vfmt cmd/tools/vfmt.v
 | 
			
		||||
#    - name: Run v fmt -diff on only the changed files. Does NOT fail for now.
 | 
			
		||||
#      run: git diff --name-status origin/master HEAD -- '*.v' |grep -v '^D'|rev|cut -f1|rev| xargs ./v fmt -noerror -diff
 | 
			
		||||
#    - name: Run v test-fmt
 | 
			
		||||
#      run: echo "TODO" #./v test-fmt
 | 
			
		||||
 | 
			
		||||
  ubuntu-tcc:
 | 
			
		||||
    runs-on: ubuntu-18.04
 | 
			
		||||
| 
						 | 
				
			
			@ -34,9 +34,9 @@ jobs:
 | 
			
		|||
        sudo ln -s /var/tmp/tcc/bin/tcc /usr/local/bin/tcc
 | 
			
		||||
        tcc -version
 | 
			
		||||
        ./v -o v2 cmd/v # Make sure vtcc can build itself
 | 
			
		||||
        ./v -silent test-compiler
 | 
			
		||||
    - name: Test v binaries
 | 
			
		||||
      run: ./v -silent build-vbinaries
 | 
			
		||||
#        ./v -silent test-compiler
 | 
			
		||||
#    - name: Test v binaries
 | 
			
		||||
#      run: ./v -silent build-vbinaries
 | 
			
		||||
 | 
			
		||||
  alpine-docker-musl-gcc:
 | 
			
		||||
    name: alpine-musl
 | 
			
		||||
| 
						 | 
				
			
			@ -79,28 +79,26 @@ jobs:
 | 
			
		|||
      run:  ./v -o v2 cmd/v && ./v2 -o v3 cmd/v
 | 
			
		||||
    - name: Test symlink
 | 
			
		||||
      run:  sudo ./v symlink
 | 
			
		||||
    - name: Set up pg database
 | 
			
		||||
      run: |
 | 
			
		||||
        pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
 | 
			
		||||
        psql -d postgres -c 'select rolname from pg_roles'
 | 
			
		||||
        psql -d postgres -c 'create database customerdb;'
 | 
			
		||||
        psql -d customerdb -f examples/database/pg/mydb.sql
 | 
			
		||||
    - name: Test v->c
 | 
			
		||||
      run: ./v -silent test-compiler
 | 
			
		||||
    - name: Test v binaries
 | 
			
		||||
      run: ./v -silent build-vbinaries
 | 
			
		||||
#    - name: Test v->js
 | 
			
		||||
#      run: ./v -o hi.js examples/hello_v_js.v && node hi.js
 | 
			
		||||
#    - name: Set up pg database
 | 
			
		||||
#      run: |
 | 
			
		||||
#        pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start
 | 
			
		||||
#        psql -d postgres -c 'select rolname from pg_roles'
 | 
			
		||||
#        psql -d postgres -c 'create database customerdb;'
 | 
			
		||||
#        psql -d customerdb -f examples/database/pg/mydb.sql
 | 
			
		||||
#    - name: Test v->c
 | 
			
		||||
#      run: ./v -silent test-compiler
 | 
			
		||||
#    - name: Test v binaries
 | 
			
		||||
#      run: ./v -silent build-vbinaries
 | 
			
		||||
##    - name: Test v->js
 | 
			
		||||
##      run: ./v -o hi.js examples/hello_v_js.v && node hi.js
 | 
			
		||||
    - name: Test symlink
 | 
			
		||||
      run:  ./v symlink && v -o v2 cmd/v
 | 
			
		||||
    - name: v2 self compilation
 | 
			
		||||
      run: ./v -b v2 -o v2 cmd/v && ./v2 -b v2 -o v3 cmd/v && ./v3 -b v2 -o v4 cmd/v
 | 
			
		||||
    - name: Test vsh
 | 
			
		||||
      run:  ./v examples/v_script.vsh
 | 
			
		||||
    - name: Test vid
 | 
			
		||||
      run: |
 | 
			
		||||
        git clone --depth 1 https://github.com/vlang/vid.git
 | 
			
		||||
        cd vid && ../v -o vid .
 | 
			
		||||
#    - name: Test vsh
 | 
			
		||||
#      run:  ./v examples/v_script.vsh
 | 
			
		||||
#    - name: Test vid
 | 
			
		||||
#      run: |
 | 
			
		||||
#        git clone --depth 1 https://github.com/vlang/vid.git
 | 
			
		||||
#        cd vid && ../v -o vid .
 | 
			
		||||
 | 
			
		||||
  ubuntu:
 | 
			
		||||
    runs-on: ubuntu-18.04
 | 
			
		||||
| 
						 | 
				
			
			@ -234,16 +232,16 @@ jobs:
 | 
			
		|||
      run: |
 | 
			
		||||
        gcc --version
 | 
			
		||||
        .\make.bat -gcc
 | 
			
		||||
    - name: Test
 | 
			
		||||
      run: |
 | 
			
		||||
        .\v.exe -silent test-compiler
 | 
			
		||||
#    - name: Test
 | 
			
		||||
#      run: |
 | 
			
		||||
#        .\v.exe -silent test-compiler
 | 
			
		||||
      ## v.js dosent work on windows
 | 
			
		||||
        #.\v.exe -o hi.js examples/hello_v_js.v
 | 
			
		||||
        #node hi.js
 | 
			
		||||
    - name: Test v binaries
 | 
			
		||||
      run: ./v -silent build-vbinaries
 | 
			
		||||
#    - name: Test v binaries
 | 
			
		||||
#      run: ./v -silent build-vbinaries
 | 
			
		||||
    - name: v2 self compilation
 | 
			
		||||
      run: .\v.exe -b v2 -o v2.exe cmd/v && .\v2.exe -b v2 -o v3.exe cmd/v
 | 
			
		||||
      run: .\v.exe -o v2.exe cmd/v && .\v2.exe -o v3.exe cmd/v
 | 
			
		||||
 | 
			
		||||
  windows-msvc:
 | 
			
		||||
    runs-on: windows-2019
 | 
			
		||||
| 
						 | 
				
			
			@ -269,8 +267,8 @@ jobs:
 | 
			
		|||
      ## v.js dosent work on windows
 | 
			
		||||
        #.\v.exe -o hi.js examples/hello_v_js.v
 | 
			
		||||
        #node hi.js
 | 
			
		||||
    - name: Test v binaries
 | 
			
		||||
      run: ./v -silent build-vbinaries
 | 
			
		||||
#    - name: Test v binaries
 | 
			
		||||
#      run: ./v -silent build-vbinaries
 | 
			
		||||
 | 
			
		||||
  docs-line-len-check:
 | 
			
		||||
    runs-on: ubuntu-18.04
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -136,10 +136,10 @@ pub struct InterfaceDecl {
 | 
			
		|||
pub struct StructInit {
 | 
			
		||||
pub:
 | 
			
		||||
	pos            token.Position
 | 
			
		||||
	typ            table.Type
 | 
			
		||||
	fields         []string
 | 
			
		||||
	exprs          []Expr
 | 
			
		||||
mut:
 | 
			
		||||
	typ            table.Type
 | 
			
		||||
	expr_types     []table.Type
 | 
			
		||||
	expected_types []table.Type
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue