mirror of
				https://github.com/meilisearch/meilisearch.git
				synced 2025-11-04 09:56:28 +00:00 
			
		
		
		
	Fixing the passing of environment variables
This commit is contained in:
		
							
								
								
									
										16
									
								
								.github/workflows/publish-crossbuild.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										16
									
								
								.github/workflows/publish-crossbuild.yml
									
									
									
									
										vendored
									
									
								
							@@ -57,20 +57,24 @@ jobs:
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
      - name: Configure target aarch64 GNU
 | 
					      - name: Configure target aarch64 GNU
 | 
				
			||||||
        if: matrix.target == 'aarch64-unknown-linux-gnu'
 | 
					        if: matrix.target == 'aarch64-unknown-linux-gnu'
 | 
				
			||||||
        # LD gold won't work with MUSL
 | 
					        ## Environment variable is not passed using env:
 | 
				
			||||||
        env:
 | 
					        ## LD gold won't work with MUSL
 | 
				
			||||||
          JEMALLOC_SYS_WITH_LG_PAGE: 16
 | 
					        # env:
 | 
				
			||||||
          RUSTFLAGS: '-Clink-arg=-fuse-ld=gold'
 | 
					        #   JEMALLOC_SYS_WITH_LG_PAGE: 16
 | 
				
			||||||
 | 
					        #   RUSTFLAGS: '-Clink-arg=-fuse-ld=gold'
 | 
				
			||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
          echo '[target.aarch64-unknown-linux-gnu]' >> ~/.cargo/config
 | 
					          echo '[target.aarch64-unknown-linux-gnu]' >> ~/.cargo/config
 | 
				
			||||||
          echo 'linker = "aarch64-linux-gnu-gcc"' >> ~/.cargo/config
 | 
					          echo 'linker = "aarch64-linux-gnu-gcc"' >> ~/.cargo/config
 | 
				
			||||||
 | 
					          echo 'JEMALLOC_SYS_WITH_LG_PAGE=16' >> $GITHUB_ENV
 | 
				
			||||||
 | 
					          echo RUSTFLAGS="-Clink-arg=-fuse-ld=gold" >> $GITHUB_ENV
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Configure target aarch64 MUSL
 | 
					      - name: Configure target aarch64 MUSL
 | 
				
			||||||
        if: matrix.target == 'aarch64-unknown-linux-musl'
 | 
					        if: matrix.target == 'aarch64-unknown-linux-musl'
 | 
				
			||||||
        env:
 | 
					        # env:
 | 
				
			||||||
          JEMALLOC_SYS_WITH_LG_PAGE: 16
 | 
					        #   JEMALLOC_SYS_WITH_LG_PAGE: 16
 | 
				
			||||||
        run: |
 | 
					        run: |
 | 
				
			||||||
          sudo apt-get install -y musl-tools
 | 
					          sudo apt-get install -y musl-tools
 | 
				
			||||||
 | 
					          echo 'JEMALLOC_SYS_WITH_LG_PAGE=16' >> $GITHUB_ENV
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      - name: Configure target x86_64 MUSL
 | 
					      - name: Configure target x86_64 MUSL
 | 
				
			||||||
        if: matrix.target == 'x86_64-unknown-linux-musl'
 | 
					        if: matrix.target == 'x86_64-unknown-linux-musl'
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user