Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test #1

Closed
wants to merge 4 commits into from
Closed
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
39 changes: 12 additions & 27 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ jobs:
target:
- x86_64-unknown-linux-gnu
- x86_64-unknown-linux-musl
# https://github.com/gleam-lang/gleam/issues/2221
# - aarch64-unknown-linux-gnu
- aarch64-unknown-linux-gnu
- aarch64-unknown-linux-musl
- x86_64-apple-darwin
- x86_64-pc-windows-msvc
Expand All @@ -47,10 +46,10 @@ jobs:
target: x86_64-unknown-linux-musl
use-cross: true
run-integration-tests: true
# - os: ubuntu-latest
# target: aarch64-unknown-linux-gnu
# use-cross: true
# run-integration-tests: false # Cannot run aarch64 binaries on x86_64
- os: ubuntu-latest
target: aarch64-unknown-linux-gnu
use-cross: true
run-integration-tests: false # Cannot run aarch64 binaries on x86_64
- os: ubuntu-latest
target: aarch64-unknown-linux-musl
use-cross: true
Expand Down Expand Up @@ -81,13 +80,10 @@ jobs:
if: ${{ matrix.target == 'x86_64-unknown-linux-musl'}}

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.toolchain }}
target: ${{ matrix.target }}
override: true
default: true
profile: minimal

- name: Install Erlang (non-macos)
uses: erlef/setup-beam@v1
Expand All @@ -109,15 +105,15 @@ jobs:
key: v1-${{ matrix.target }}

- name: Install Gleam
uses: actions-rs/cargo@v1
uses: clechasseur/rs-cargo@v2
with:
command: install
args: "--path compiler-cli --target ${{ matrix.target }} --debug --locked"
use-cross: ${{ matrix.use-cross }}
if: ${{ matrix.run-integration-tests }}

- name: Run tests
uses: actions-rs/cargo@v1
uses: clechasseur/rs-cargo@v2
with:
command: test
args: "--workspace --target ${{ matrix.target }}"
Expand Down Expand Up @@ -237,12 +233,10 @@ jobs:
uses: actions/checkout@v4

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
target: wasm32-unknown-unknown
profile: minimal
override: true

- uses: actions/setup-node@v4
with:
Expand All @@ -264,12 +258,9 @@ jobs:
uses: actions/checkout@v4

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
override: true
default: true
profile: minimal
components: rustfmt

- run: cargo fmt --all -- --check
Expand All @@ -283,12 +274,9 @@ jobs:
uses: actions/checkout@v4

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
override: true
default: true
profile: minimal

- name: Install cargo-deny
run: |
Expand All @@ -309,12 +297,9 @@ jobs:
uses: actions/checkout@v4

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
override: true
default: true
profile: minimal
components: clippy

- name: Handle Rust dependencies caching
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/release-nightly.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,21 +85,18 @@ jobs:
./bin/add-nightly-suffix-to-versions.sh

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.toolchain }}
target: ${{ matrix.target }}
override: true
default: true
profile: minimal

- name: Handle Rust dependencies caching
uses: Swatinem/rust-cache@v2
with:
key: v1-${{ matrix.target }}

- name: Build release binary
uses: actions-rs/cargo@v1
uses: clechasseur/rs-cargo@v2
with:
command: build
args: --release --target ${{ matrix.target }}
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,21 +42,18 @@ jobs:
uses: actions/checkout@v4

- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.toolchain }}
target: ${{ matrix.target }}
override: true
default: true
profile: minimal

- name: Handle Rust dependencies caching
uses: Swatinem/rust-cache@v2
with:
key: v1-${{ matrix.target }}

- name: Build release binary
uses: actions-rs/cargo@v1
uses: clechasseur/rs-cargo@v2
with:
command: build
args: --release --target ${{ matrix.target }}
Expand Down
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@

([zahash](https://github.com/zahash))

- Replace `actions-rs/toolchain` with `dtolnay/rust-toolchain` and
`actions-rs/cargo` with `clechasseur/rs-cargo` ([Pi-Cla](https://github.com/Pi-Cla))

- A link to the package on Hex is no longer auto-added to the HTML documentation
when building them locally. It is still added when publishing to Hex.
([Pi-Cla](https://github.com/Pi-Cla))
Expand Down Expand Up @@ -309,3 +312,8 @@
- Fixed a bug where having utf8 symbols in `gleam.toml`'s description value
would result in an HTTP 500 error when running `gleam publish`.
([inoas](https://github.com/inoas))

- CI Builds on aarch64-unknown-linux-gnu now work again.
The issue was caused by using an out of date version of `ring`
which was finally removed after the bump in dependencies from `hexpm-rust`
([Pi-Cla](https://github.com/Pi-Cla))
Loading
Loading