Fix some workflow problems
This commit is contained in:
		
							parent
							
								
									87ea9aa668
								
							
						
					
					
						commit
						9a87e502f7
					
				
					 3 changed files with 2 additions and 27 deletions
				
			
		| 
						 | 
				
			
			@ -1,26 +0,0 @@
 | 
			
		|||
on:
 | 
			
		||||
  push:
 | 
			
		||||
    tags:
 | 
			
		||||
      - v**
 | 
			
		||||
jobs:
 | 
			
		||||
  build-artifacts:
 | 
			
		||||
    runs-on: docker
 | 
			
		||||
    container:
 | 
			
		||||
      image: registry.serguzim.me/emgauwa/runner
 | 
			
		||||
    strategy:
 | 
			
		||||
      matrix:
 | 
			
		||||
        arch:
 | 
			
		||||
          - x86_64-unknown-linux-gnu # for "standard" systems
 | 
			
		||||
          - x86_64-unknown-linux-musl # for docker
 | 
			
		||||
          - arm-unknown-linux-gnueabihf # for raspberry pi
 | 
			
		||||
    steps:
 | 
			
		||||
      - uses: https://code.forgejo.org/actions/checkout@v3
 | 
			
		||||
      - id: cargo-build-release
 | 
			
		||||
        run: |
 | 
			
		||||
          source "$HOME/.cargo/env"
 | 
			
		||||
          cross build --target ${{ matrix.arch }} --release
 | 
			
		||||
        shell: bash
 | 
			
		||||
      - uses: https://code.forgejo.org/actions/upload-artifact@v3
 | 
			
		||||
        with:
 | 
			
		||||
          name: emgauwa-core_${{ matrix.arch }}
 | 
			
		||||
          path: ${{ github.workspace }}/target/${{ matrix.arch }}/release/emgauwa-core
 | 
			
		||||
							
								
								
									
										1
									
								
								Cargo.lock
									
										
									
										generated
									
									
									
								
							
							
						
						
									
										1
									
								
								Cargo.lock
									
										
									
										generated
									
									
									
								
							| 
						 | 
				
			
			@ -713,6 +713,7 @@ dependencies = [
 | 
			
		|||
[[package]]
 | 
			
		||||
name = "emgauwa-common"
 | 
			
		||||
version = "0.5.0"
 | 
			
		||||
source = "git+https://git.serguzim.me/emgauwa/common.git#b14049b3f6e8aa6a748e4d185bd52ca3f7a38f38"
 | 
			
		||||
dependencies = [
 | 
			
		||||
 "actix",
 | 
			
		||||
 "actix-web",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										2
									
								
								Makefile
									
										
									
									
									
								
							
							
						
						
									
										2
									
								
								Makefile
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -12,7 +12,7 @@ clean:
 | 
			
		|||
	rm -f emgauwa-core.sqlite
 | 
			
		||||
 | 
			
		||||
emgauwa-core_%:
 | 
			
		||||
	$(TOOL) build --target $* --release --bin emgauwa-core
 | 
			
		||||
	$(TOOL) build --target $* --release
 | 
			
		||||
	mkdir -p out/releases
 | 
			
		||||
	cp target/$*/release/emgauwa-core out/releases/emgauwa-core_$*
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue