Skip to content

Commit 00f852d

Browse files
authored
Merge branch 'main' into add-gleam-compiler
2 parents 8f75b1b + 6d5f433 commit 00f852d

172 files changed

Lines changed: 10179 additions & 3496 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/ci.yml

Lines changed: 10 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,8 @@ name: CI
66

77
on:
88
push:
9-
paths-ignore:
10-
- "lib/**/*.md"
11-
129
pull_request:
13-
paths-ignore:
14-
- "lib/**/*.md"
10+
workflow_dispatch:
1511

1612
env:
1713
ELIXIR_ASSERT_TIMEOUT: 2000
@@ -52,7 +48,7 @@ jobs:
5248
env:
5349
ERLC_OPTS: ${{ matrix.erlc_opts || '' }}
5450
steps:
55-
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
51+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5652

5753
- uses: erlef/setup-beam@e6d7c94229049569db56a7ad5a540c051a010af9 # v1.20.4
5854
with:
@@ -100,18 +96,21 @@ jobs:
10096

10197
- name: "Upload Coverage Artifact"
10298
if: ${{ matrix.coverage }}
103-
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
99+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
104100
with:
105101
name: TestCoverage
106102
path: cover/*
107103

108104
- name: Check reproducible builds
105+
if: ${{ matrix.deterministic }}
106+
run: taskset 1 make check_reproducible
107+
108+
- name: Check git is not required
109109
if: ${{ matrix.deterministic }}
110110
run: |
111111
rm -rf .git
112-
# Recompile System without .git
113-
cd lib/elixir && ../../bin/elixirc -o ebin lib/system.ex && cd -
114-
taskset 1 make check_reproducible
112+
cd lib/elixir
113+
elixirc --ignore-module-conflict -o ebin "lib/**/*.ex"
115114
116115
test_windows:
117116
name: Windows Server 2022, OTP ${{ matrix.otp_version }}
@@ -128,7 +127,7 @@ jobs:
128127
- name: Configure Git
129128
run: git config --global core.autocrlf input
130129

131-
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
130+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
132131

133132
- uses: erlef/setup-beam@e6d7c94229049569db56a7ad5a540c051a010af9 # v1.20.4
134133
with:
@@ -152,27 +151,3 @@ jobs:
152151
run: |
153152
Remove-Item 'c:/Windows/System32/drivers/etc/hosts'
154153
make test_elixir
155-
156-
license_compliance:
157-
name: Check Licence Compliance
158-
159-
runs-on: ubuntu-24.04
160-
161-
steps:
162-
- name: Use HTTPS instead of SSH for Git cloning
163-
id: git-config
164-
shell: bash
165-
run: git config --global url.https://github.com/.insteadOf ssh://git@github.com/
166-
167-
- name: Checkout project
168-
id: checkout
169-
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
170-
171-
- name: "Run OSS Review Toolkit"
172-
id: ort
173-
uses: ./.github/workflows/ort
174-
with:
175-
upload-reports: true
176-
fail-on-violation: true
177-
report-formats: "WebApp"
178-
version: "${{ github.sha }}"
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
# SPDX-FileCopyrightText: 2021 The Elixir Team
3+
4+
name: License Compliance
5+
6+
on:
7+
push:
8+
pull_request:
9+
workflow_dispatch:
10+
11+
permissions:
12+
contents: read
13+
14+
env:
15+
LANG: C.UTF-8
16+
17+
jobs:
18+
license_compliance:
19+
name: Check License Compliance
20+
runs-on: ubuntu-24.04
21+
22+
steps:
23+
- name: Use HTTPS instead of SSH for Git cloning
24+
id: git-config
25+
shell: bash
26+
run: git config --global url.https://github.com/.insteadOf ssh://git@github.com/
27+
28+
- name: Checkout project
29+
id: checkout
30+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
31+
32+
- name: Run OSS Review Toolkit
33+
id: ort
34+
uses: ./.github/workflows/ort
35+
with:
36+
upload-reports: true
37+
fail-on-violation: true
38+
report-formats: "WebApp"
39+
version: "${{ github.sha }}"

.github/workflows/markdown.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
fail-fast: false
3434

3535
steps:
36-
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
36+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3737

3838
- name: Run markdownlint-cli2
39-
uses: DavidAnson/markdownlint-cli2-action@30a0e04f1870d58f8d717450cc6134995f993c63 # v21.0.0
39+
uses: DavidAnson/markdownlint-cli2-action@07035fd053f7be764496c0f8d8f9f41f98305101 # v22.0.0

.github/workflows/posix_compliance.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
fail-fast: false
3333

3434
steps:
35-
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
35+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3636

3737
- name: Install ShellCheck
3838
run: |

.github/workflows/release.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
--draft \
4444
${{ github.ref_name }}
4545
46-
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
46+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4747
if: github.ref_type == 'branch'
4848

4949
- name: Update ${{ github.ref_name }}-latest
@@ -81,7 +81,7 @@ jobs:
8181
build_docs: build_docs
8282

8383
steps:
84-
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
84+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
8585

8686
- name: "Build Release"
8787
uses: ./.github/workflows/release_pre_built
@@ -97,19 +97,19 @@ jobs:
9797
shasum -a 256 Docs.zip > Docs.zip.sha256sum
9898
9999
- name: "Upload Linux release artifacts"
100-
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
100+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
101101
with:
102102
name: build-linux-elixir-otp-${{ matrix.otp }}
103103
path: elixir-otp-${{ matrix.otp }}.zip
104104

105105
- name: "Upload Windows release artifacts"
106-
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
106+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
107107
with:
108108
name: build-windows-elixir-otp-${{ matrix.otp }}
109109
path: elixir-otp-${{ matrix.otp }}.exe
110110

111111
- name: "Upload doc artifacts"
112-
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
112+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
113113
if: matrix.build_docs
114114
with:
115115
name: Docs
@@ -136,7 +136,7 @@ jobs:
136136

137137
steps:
138138
- name: "Download build"
139-
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
139+
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
140140
with:
141141
name: build-${{ matrix.flavor }}-elixir-otp-${{ matrix.otp }}
142142

@@ -149,7 +149,7 @@ jobs:
149149
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
150150

151151
- name: "Sign files with Trusted Signing"
152-
uses: azure/trusted-signing-action@fc390cf8ed0f14e248a542af1d838388a47c7a7c # v0.5.10
152+
uses: azure/trusted-signing-action@87c2e83e6868da99d3380aa309851b32ed9a8346 # v1.1.0
153153
if: ${{ matrix.flavor == 'windows' && vars.AZURE_TRUSTED_SIGNING_ACCOUNT_NAME }}
154154
with:
155155
endpoint: https://eus.codesigning.azure.net/
@@ -179,7 +179,7 @@ jobs:
179179
shasum -a 256 "$RELEASE_FILE" > "${RELEASE_FILE}.sha256sum"
180180
181181
- name: "Upload Linux release artifacts"
182-
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
182+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
183183
with:
184184
name: sign-${{ matrix.flavor }}-elixir-otp-${{ matrix.otp }}
185185
path: ${{ env.RELEASE_FILE }}*
@@ -202,11 +202,11 @@ jobs:
202202

203203
- name: Checkout project
204204
id: checkout
205-
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
205+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
206206

207207
- name: "Download Build Artifacts"
208208
id: download-build-artifacts
209-
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
209+
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
210210
with:
211211
pattern: "{sign-*-elixir-otp-*,Docs}"
212212
merge-multiple: true
@@ -249,7 +249,7 @@ jobs:
249249
ATTESTATION: "${{ steps.attest-sbom.outputs.bundle-path }}"
250250

251251
- name: "Assemble Release SBoM Artifacts"
252-
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
252+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
253253
with:
254254
name: "SBoM"
255255
path: |
@@ -259,7 +259,7 @@ jobs:
259259
${{ steps.ort.outputs.results-sbom-spdx-json-path }}
260260
261261
- name: "Assemble Distribution Attestations"
262-
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
262+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
263263
with:
264264
name: "Attestations"
265265
path: "attestations/*.sigstore"
@@ -273,7 +273,7 @@ jobs:
273273
contents: write
274274

275275
steps:
276-
- uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
276+
- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
277277
with:
278278
pattern: "{sign-*-elixir-otp-*,Docs,SBoM,Attestations}"
279279
merge-multiple: true
@@ -324,7 +324,7 @@ jobs:
324324
echo "Required variables for uploading to hex.pm are not set up, skipping..."
325325
exit 1
326326
327-
- uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
327+
- uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
328328
with:
329329
pattern: "{sign-*-elixir-otp-*,Docs}"
330330
merge-multiple: true

.github/workflows/release_notifications.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
name: Notify
1818

1919
steps:
20-
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
20+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2121

2222
- uses: erlef/setup-beam@e6d7c94229049569db56a7ad5a540c051a010af9 # v1.20.4
2323
with:

0 commit comments

Comments
 (0)