diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ecff4cd..e4f8681 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -163,7 +163,7 @@ jobs: uses: svenstaro/upload-release-action@v2 if: matrix.runner != 'windows-latest' with: - file: ./lead_init/target/release/lead_init + file: ./lead_init/target/${{ matrix.target }}/release/lead_init asset_name: lead_init_${{ matrix.target }} repo_token: ${{ secrets.GITHUB_TOKEN }} tag: ${{ steps.tag.outputs.TAG_NAME }} @@ -173,7 +173,7 @@ jobs: uses: svenstaro/upload-release-action@v2 if: matrix.runner == 'windows-latest' with: - file: ./lead_init/target/release/lead_init.exe + file: ./lead_init/target/${{ matrix.target }}/release/lead_init.exe asset_name: lead_init_${{ matrix.target }}.exe repo_token: ${{ secrets.GITHUB_TOKEN }} tag: ${{ steps.tag.outputs.TAG_NAME }} diff --git a/src/main.rs b/src/main.rs index 52978bf..e393f35 100644 --- a/src/main.rs +++ b/src/main.rs @@ -64,7 +64,7 @@ fn main() { #[cfg(debug_assertions)] let typ = "debug"; - let fs_dir = format!("{}/target/{}", path.to_string_lossy(), &typ); + let fs_dir = format!("{}/target/{}/{}", path.to_string_lossy(), target, &typ); for file in fs::read_dir(fs_dir).unwrap() { let file = file.unwrap();