Ruby support #1
					 1 changed files with 22 additions and 12 deletions
				
			
		
							
								
								
									
										34
									
								
								.github/workflows/rust.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										34
									
								
								.github/workflows/rust.yml
									
									
									
									
										vendored
									
									
								
							|  | @ -2,9 +2,9 @@ name: Rust | ||||||
| 
 | 
 | ||||||
| on: | on: | ||||||
|   push: |   push: | ||||||
|     branches: [ "main" ] |     branches: ["main"] | ||||||
|   pull_request: |   pull_request: | ||||||
|     branches: [ "main" ] |     branches: ["main"] | ||||||
| 
 | 
 | ||||||
| env: | env: | ||||||
|   CARGO_TERM_COLOR: always |   CARGO_TERM_COLOR: always | ||||||
|  | @ -15,13 +15,23 @@ jobs: | ||||||
|     env: |     env: | ||||||
|       RUSTFLAGS: -D warnings |       RUSTFLAGS: -D warnings | ||||||
|     steps: |     steps: | ||||||
|     - uses: actions/checkout@v3 |       - uses: actions/checkout@v3 | ||||||
|     - uses: ruby/setup-ruby@v1 |       - name: Install Ruby | ||||||
|       with: |         env: | ||||||
|         ruby-version: '3.4' |           CC: clang | ||||||
|     - name: Clippy |         run: | | ||||||
|       run: cargo clippy --all-features --verbose -- -D warnings |           url="https://cache.ruby-lang.org/pub/ruby/3.4/ruby-3.4.4.tar.gz" | ||||||
|     - name: Build |           mkdir ruby_src | ||||||
|       run: cargo build --all-features --verbose |           curl -sSL $url | tar -xz --directory=./ruby_src | ||||||
|     - name: Run tests |           cd ruby_src | ||||||
|       run: cargo test --all-features --verbose |           mkdir build && cd build | ||||||
|  |           mkdir /rubies | ||||||
|  |           ../configure --without-shared --prefix="/rubies/ruby-3.4" | ||||||
|  |           make install | ||||||
|  |           echo /rubies/ruby-3.4/ruby/bin >> $GITHUB_PATH | ||||||
|  |       - name: Clippy | ||||||
|  |         run: cargo clippy --all-features --verbose -- -D warnings | ||||||
|  |       - name: Build | ||||||
|  |         run: cargo build --all-features --verbose | ||||||
|  |       - name: Run tests | ||||||
|  |         run: cargo test --all-features --verbose | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue