diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cd197f04..394155a8 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,16 +30,18 @@ jobs: - os: windows-latest artifact-name: stylua-windows-x86_64 cargo-target: x86_64-pc-windows-msvc - - os: ubuntu-20.04 + - os: ubuntu-22.04 artifact-name: stylua-linux-x86_64 cargo-target: x86_64-unknown-linux-gnu - - os: ubuntu-20.04 + - os: ubuntu-22.04 artifact-name: stylua-linux-x86_64-musl cargo-target: x86_64-unknown-linux-musl - - os: ubuntu-20.04 + - os: ubuntu-22.04-arm artifact-name: stylua-linux-aarch64 cargo-target: aarch64-unknown-linux-gnu - linker: gcc-aarch64-linux-gnu + - os: ubuntu-22.04-arm + artifact-name: stylua-linux-aarch64-musl + cargo-target: aarch64-unknown-linux-musl - os: macos-latest artifact-name: stylua-macos-x86_64 cargo-target: x86_64-apple-darwin @@ -57,12 +59,6 @@ jobs: with: target: ${{ matrix.cargo-target }} - - name: Install Linker packages - if: ${{ matrix.linker != '' }} - run: | - sudo apt update - sudo apt install ${{ matrix.linker }} - - name: Build Binary (All features) run: cargo build --verbose --locked --release --features lua52,lua53,lua54,luau,luajit,cfxlua --target ${{ matrix.cargo-target }} env: @@ -84,7 +80,7 @@ jobs: fi - name: Upload Binary Artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ matrix.artifact-name }} path: release.zip @@ -190,6 +186,7 @@ jobs: - uses: docker/build-push-action@v5 with: + platforms: linux/amd64,linux/arm64 push: true context: . file: Dockerfile diff --git a/CHANGELOG.md b/CHANGELOG.md index 411001cf..d91f4d80 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Luau: Added support for parsing user-defined type functions ([#938](https://github.com/JohnnyMorganz/StyLua/issues/938)) - Luau: Added support for parsing attributes (`@native` / `@deprecated`) on functions - Added support for CfxLua (FiveM) syntax formatting. This is available with `syntax = "cfxlua"` ([#855](https://github.com/JohnnyMorganz/StyLua/issues/855)) +- Added a pre-built binary release for `stylua-linux-aarch64-musl.zip` + +### Changed + +- Updated StyLua release GitHub action to `ubuntu-22.04` workers due to GitHub's deprecation of `ubuntu-20.04`. This may mean the pre-built release artifacts published to GitHub no longer work on `ubuntu-20.04` and require a manual build. ### Fixed