Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 8 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand All @@ -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
Expand Down Expand Up @@ -190,6 +186,7 @@ jobs:

- uses: docker/build-push-action@v5
with:
platforms: linux/amd64,linux/arm64
push: true
context: .
file: Dockerfile
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down