Update drone triggers
This commit is contained in:
		
							parent
							
								
									fbb7b397c2
								
							
						
					
					
						commit
						1b07fec76f
					
				
					 1 changed files with 119 additions and 4 deletions
				
			
		
							
								
								
									
										123
									
								
								.drone.yml
									
										
									
									
									
								
							
							
						
						
									
										123
									
								
								.drone.yml
									
										
									
									
									
								
							|  | @ -22,7 +22,12 @@ steps: | ||||||
|   pull: always |   pull: always | ||||||
|   commands: |   commands: | ||||||
|   - rustup component add clippy |   - rustup component add clippy | ||||||
|   - cargo clippy --no-default-features |   - cargo clippy | ||||||
|  | 
 | ||||||
|  | trigger: | ||||||
|  |   event: | ||||||
|  |   - push | ||||||
|  |   - pull_request | ||||||
| 
 | 
 | ||||||
| --- | --- | ||||||
| 
 | 
 | ||||||
|  | @ -51,6 +56,43 @@ steps: | ||||||
|   commands: |   commands: | ||||||
|   - cargo test |   - cargo test | ||||||
| 
 | 
 | ||||||
|  | trigger: | ||||||
|  |   event: | ||||||
|  |   - push | ||||||
|  |   - pull_request | ||||||
|  | 
 | ||||||
|  | --- | ||||||
|  | 
 | ||||||
|  | kind: pipeline | ||||||
|  | type: docker | ||||||
|  | name: check-amd64 | ||||||
|  | 
 | ||||||
|  | platform: | ||||||
|  |   arch: amd64 | ||||||
|  | 
 | ||||||
|  | clone: | ||||||
|  |   disable: true | ||||||
|  | 
 | ||||||
|  | steps: | ||||||
|  | - name: clone | ||||||
|  |   image: alpine/git:latest | ||||||
|  |   user: root | ||||||
|  |   commands: | ||||||
|  |   - git clone $DRONE_GIT_HTTP_URL . | ||||||
|  |   - git checkout $DRONE_COMMIT | ||||||
|  |   - chown -R 991:991 . | ||||||
|  | 
 | ||||||
|  | - name: build | ||||||
|  |   image: asonix/rust-builder:amd64-latest | ||||||
|  |   pull: always | ||||||
|  |   commands: | ||||||
|  |   - cargo check --target=x86_64-unknown-linux-musl | ||||||
|  | 
 | ||||||
|  | trigger: | ||||||
|  |   event: | ||||||
|  |   - push | ||||||
|  |   - pull_request | ||||||
|  | 
 | ||||||
| --- | --- | ||||||
| 
 | 
 | ||||||
| kind: pipeline | kind: pipeline | ||||||
|  | @ -76,9 +118,44 @@ steps: | ||||||
|   image: asonix/rust-builder:amd64-latest |   image: asonix/rust-builder:amd64-latest | ||||||
|   pull: always |   pull: always | ||||||
|   commands: |   commands: | ||||||
|   - cargo check --target=x86_64-unknown-linux-musl |  | ||||||
|   - cargo build --target=x86_64-unknown-linux-musl --release |   - cargo build --target=x86_64-unknown-linux-musl --release | ||||||
| 
 | 
 | ||||||
|  | trigger: | ||||||
|  |   event: | ||||||
|  |   - tag | ||||||
|  | 
 | ||||||
|  | --- | ||||||
|  | 
 | ||||||
|  | kind: pipeline | ||||||
|  | type: docker | ||||||
|  | name: check-arm64v8 | ||||||
|  | 
 | ||||||
|  | platform: | ||||||
|  |   arch: amd64 | ||||||
|  | 
 | ||||||
|  | clone: | ||||||
|  |   disable: true | ||||||
|  | 
 | ||||||
|  | steps: | ||||||
|  | - name: clone | ||||||
|  |   image: alpine/git:latest | ||||||
|  |   user: root | ||||||
|  |   commands: | ||||||
|  |   - git clone $DRONE_GIT_HTTP_URL . | ||||||
|  |   - git checkout $DRONE_COMMIT | ||||||
|  |   - chown -R 991:991 . | ||||||
|  | 
 | ||||||
|  | - name: build | ||||||
|  |   image: asonix/rust-builder:arm64v8-latest | ||||||
|  |   pull: always | ||||||
|  |   commands: | ||||||
|  |   - cargo check --target=aarch64-unknown-linux-musl | ||||||
|  | 
 | ||||||
|  | trigger: | ||||||
|  |   event: | ||||||
|  |   - push | ||||||
|  |   - pull_request | ||||||
|  | 
 | ||||||
| --- | --- | ||||||
| 
 | 
 | ||||||
| kind: pipeline | kind: pipeline | ||||||
|  | @ -104,9 +181,44 @@ steps: | ||||||
|   image: asonix/rust-builder:arm64v8-latest |   image: asonix/rust-builder:arm64v8-latest | ||||||
|   pull: always |   pull: always | ||||||
|   commands: |   commands: | ||||||
|   - cargo check --target=aarch64-unknown-linux-musl |  | ||||||
|   - cargo build --target=aarch64-unknown-linux-musl --release |   - cargo build --target=aarch64-unknown-linux-musl --release | ||||||
| 
 | 
 | ||||||
|  | trigger: | ||||||
|  |   event: | ||||||
|  |   - tag | ||||||
|  | 
 | ||||||
|  | --- | ||||||
|  | 
 | ||||||
|  | kind: pipeline | ||||||
|  | type: docker | ||||||
|  | name: check-arm32v7 | ||||||
|  | 
 | ||||||
|  | platform: | ||||||
|  |   arch: amd64 | ||||||
|  | 
 | ||||||
|  | clone: | ||||||
|  |   disable: true | ||||||
|  | 
 | ||||||
|  | steps: | ||||||
|  | - name: clone | ||||||
|  |   image: alpine/git:latest | ||||||
|  |   user: root | ||||||
|  |   commands: | ||||||
|  |   - git clone $DRONE_GIT_HTTP_URL . | ||||||
|  |   - git checkout $DRONE_COMMIT | ||||||
|  |   - chown -R 991:991 . | ||||||
|  | 
 | ||||||
|  | - name: build | ||||||
|  |   image: asonix/rust-builder:arm32v7-latest | ||||||
|  |   pull: always | ||||||
|  |   commands: | ||||||
|  |   - cargo check --target=armv7-unknown-linux-musleabihf | ||||||
|  | 
 | ||||||
|  | trigger: | ||||||
|  |   event: | ||||||
|  |   - push | ||||||
|  |   - pull_request | ||||||
|  | 
 | ||||||
| --- | --- | ||||||
| 
 | 
 | ||||||
| kind: pipeline | kind: pipeline | ||||||
|  | @ -132,5 +244,8 @@ steps: | ||||||
|   image: asonix/rust-builder:arm32v7-latest |   image: asonix/rust-builder:arm32v7-latest | ||||||
|   pull: always |   pull: always | ||||||
|   commands: |   commands: | ||||||
|   - cargo check --target=armv7-unknown-linux-musleabihf |  | ||||||
|   - cargo build --target=armv7-unknown-linux-musleabihf --release |   - cargo build --target=armv7-unknown-linux-musleabihf --release | ||||||
|  | 
 | ||||||
|  | trigger: | ||||||
|  |   event: | ||||||
|  |   - tag | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		
		Reference in a new issue