1111
1212jobs :
1313 build :
14- name : Build for ${{ matrix.target }}
14+ name : Build for ${{ matrix.os }}
1515 runs-on : ${{ matrix.os }}
1616 strategy :
1717 matrix :
1818 include :
1919 - os : ubuntu-latest
20- target : x86_64-unknown-linux-gnu
2120 artifact_name : externkit
2221 asset_name : externkit-linux-x86_64
2322 - os : windows-latest
24- target : x86_64-pc-windows-msvc
2523 artifact_name : externkit.exe
2624 asset_name : externkit-windows-x86_64.exe
2725 - os : macos-latest
28- target : x86_64-apple-darwin
2926 artifact_name : externkit
3027 asset_name : externkit-macos-x86_64
31- - os : macos-latest
32- target : aarch64-apple-darwin
33- artifact_name : externkit
34- asset_name : externkit-macos-aarch64
3528
3629 steps :
3730 - name : Checkout code
3831 uses : actions/checkout@v4
3932
33+ - name : Set up Python
34+ uses : actions/setup-python@v5
35+ with :
36+ python-version : ' 3.10'
37+
38+ - name : Install Python development headers (Ubuntu)
39+ if : matrix.os == 'ubuntu-latest'
40+ run : |
41+ sudo apt-get update
42+ sudo apt-get install -y python3-dev
43+
4044 - name : Install Rust
4145 uses : dtolnay/rust-toolchain@stable
42- with :
43- targets : ${{ matrix.target }}
4446
4547 - name : Cache cargo registry
4648 uses : actions/cache@v4
@@ -54,17 +56,17 @@ jobs:
5456 ${{ runner.os }}-cargo-
5557
5658 - name : Build binary
57- run : cargo build --release --target ${{ matrix.target }}
59+ run : cargo build --release --bin externkit
5860
5961 - name : Strip binary (Linux and macOS)
6062 if : matrix.os != 'windows-latest'
61- run : strip target/${{ matrix.target }}/ release/${{ matrix.artifact_name }}
63+ run : strip target/release/${{ matrix.artifact_name }}
6264
6365 - name : Upload artifact
6466 uses : actions/upload-artifact@v4
6567 with :
6668 name : ${{ matrix.asset_name }}
67- path : target/${{ matrix.target }}/ release/${{ matrix.artifact_name }}
69+ path : target/release/${{ matrix.artifact_name }}
6870
6971 release :
7072 name : Create Release
0 commit comments