Skip to content

Commit

Permalink
WIP: temporarily commit
Browse files Browse the repository at this point in the history
  • Loading branch information
pollenjp committed Oct 24, 2024
1 parent df13a92 commit 7ae57e1
Showing 1 changed file with 32 additions and 12 deletions.
44 changes: 32 additions & 12 deletions .github/workflows/build-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@ env:
RUSTUP_MAX_RETRIES: 10
FETCH_DEPTH: 0 # pull in the tags for the version string
MACOSX_DEPLOYMENT_TARGET: 13.0
# https://blog.rust-lang.org/2022/08/01/Increasing-glibc-kernel-requirements.html
BUILD_GLIB_VERSION: 2.17

jobs:
dist:
Expand All @@ -37,8 +35,19 @@ jobs:
# code-target: win32-arm64
- os: ubuntu-20.04
target: x86_64-unknown-linux-gnu
# https://blog.rust-lang.org/2022/08/01/Increasing-glibc-kernel-requirements.html
glib_version: 2.17
# - os: ubuntu-20.04
# target: aarch64-unknown-linux-gnu
# glib_version: 2.17
# - os: ubuntu-20.04
# target: x86_64-unknown-linux-musl
# - os: ubuntu-20.04
# target: aarch64-unknown-linux-musl
# - os: ubuntu-20.04
# target: arm-unknown-linux-gnueabihf
# - os: ubuntu-20.04
# target: armv7-unknown-linux-gnueabihf
# - os: ubuntu-20.04
# target: arm-unknown-linux-gnueabihf
# - os: macos-13
Expand All @@ -47,8 +56,6 @@ jobs:
# target: aarch64-apple-darwin
name: dist (${{ matrix.target }})
runs-on: ${{ matrix.os }}
env:
RA_TARGET: ${{ matrix.target }}
steps:
- name: Prepare
run: |
Expand All @@ -60,18 +67,27 @@ jobs:
echo CARGO_HOME="${{ runner.temp }}/.cargo"
echo PYTHONUSERBASE="${{ runner.temp }}/.local"
} >> "$GITHUB_ENV"
- name: Install Rust
{
echo "${{ runner.temp }}/.local/bin"
# echo "${{ runner.temp }}/.cargo/bin"
} >> "$GITHUB_PATH"
- name: Debug
run: |
curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused -fsSL "https://sh.rustup.rs" \
| sh -s -- --profile minimal --default-toolchain none -y
echo "${CARGO_HOME:-$HOME/.cargo}/bin" >> $GITHUB_PATH
set +e
ls -la ~/.rustup
ls -la ~/.cargo
# - name: Install Rust
# run: |
# curl --proto '=https' --tlsv1.2 --retry 10 --retry-connrefused -fsSL "https://sh.rustup.rs" \
# | sh -s -- --profile minimal --default-toolchain none -y
# echo "${CARGO_HOME:-$HOME/.cargo}/bin" >> $GITHUB_PATH
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Update pip
run: pip install --user -U pip
- name: Install ziglang
run: pip install --user ziglang
- name: Install cargo-zigbuild (and ziglang)
run: pip install --user cargo-zigbuild
- name: Install Rust toolchain
run: |
rustup update --no-self-update stable
Expand All @@ -87,8 +103,12 @@ jobs:
ls -la ~/.rustup
ls -la ~/.cargo
- name: Dist
run: cargo xtask dist --client-patch-version ${{ github.run_number }}

run: |
target="${{ matrix.target }}"
if [[ -n "${{ matrix.target.glib_version }}" ]]; then
target="${target}.${{ matrix.target.glib_version }}"
fi
cargo zigbuild --target="${target}"
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit 7ae57e1

Please sign in to comment.