diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b57f546..cc90837 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,14 +18,16 @@ jobs: - os: ubuntu-latest artifact_name: data2excel asset_name: data2excel-linux-amd64 + command: apt install musl && apt install musl-dev && cargo build --release --target=x86_64-unknown-linux-musl - os: windows-latest artifact_name: data2excel.exe asset_name: data2excel-windows-amd64.exe + command: cargo build --release steps: - - uses: actions/checkout@v3 - name: Build - run: cargo build --release --target=x86_64-unknown-linux-musl + - uses: actions/checkout@v3 + run: ${{ matrix.command }} - name: Upload binaries to release uses: svenstaro/upload-release-action@v2 with: diff --git a/.github/workflows/rust_build.yml b/.github/workflows/rust_build.yml deleted file mode 100644 index d27099d..0000000 --- a/.github/workflows/rust_build.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: Publish Rust Build - -on: - push: - tags: - - 'v[0-9]+.[0-9]+.[0-9]+' - -jobs: - release: - name: release ${{ matrix.target }} - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - include: - - target: x86_64-pc-windows-gnu - archive: zip - - target: x86_64-unknown-linux-musl - archive: tar.gz tar.xz tar.zst - - target: x86_64-apple-darwin - archive: zip - steps: - - uses: actions/checkout@master - - name: Compile and release - uses: rust-build/rust-build.action@v1.4.5 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - RUSTTARGET: ${{ matrix.target }} - ARCHIVE_TYPES: ${{ matrix.archive }}