Skip to content

Commit 9573fe0

Browse files
committed
fix: use clang instead of gcc for
1 parent e867a67 commit 9573fe0

File tree

5 files changed

+6
-77
lines changed

5 files changed

+6
-77
lines changed

.github/workflows/crates_io_publish.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,6 @@ jobs:
2020
rustup show
2121
2222
- run: cargo publish --token ${CRATES_TOKEN}
23+
continue-on-error: true
2324
env:
2425
CRATES_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}

.github/workflows/linux_release.yml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,6 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@v4
2121

22-
- name: Restore cache
23-
id: cache-cargo-restore
24-
uses: actions/cache@v4
25-
with:
26-
path: |
27-
~/.cargo/bin/
28-
~/.cargo/registry/index/
29-
~/.cargo/registry/cache/
30-
~/.cargo/git/db/
31-
target/
32-
key: ${{ runner.os }}-cargo
33-
3422
- run: |
3523
rustup toolchain install 1.92.0
3624
rustup override set 1.92.0
@@ -184,18 +172,6 @@ jobs:
184172
environment-url: https://github.com/ArkForgeLabs/Astra
185173
environment: production
186174

187-
- name: Save Cache
188-
id: cache-cargo-save
189-
uses: actions/cache/save@v4
190-
with:
191-
path: |
192-
~/.cargo/bin/
193-
~/.cargo/registry/index/
194-
~/.cargo/registry/cache/
195-
~/.cargo/git/db/
196-
target/
197-
key: ${{ runner.os }}-cargo
198-
199175
- name: Update deployment status (success)
200176
if: success()
201177
uses: chrnorm/deployment-status@v2

.github/workflows/macos_release.yml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,6 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@v4
2121

22-
- name: Restore cache
23-
id: cache-cargo-restore
24-
uses: actions/cache@v4
25-
with:
26-
path: |
27-
~/.cargo/bin/
28-
~/.cargo/registry/index/
29-
~/.cargo/registry/cache/
30-
~/.cargo/git/db/
31-
target/
32-
key: ${{ runner.os }}-cargo
33-
3422
- run: |
3523
rustup toolchain install 1.92.0
3624
rustup override set 1.92.0
@@ -108,18 +96,6 @@ jobs:
10896
environment-url: https://github.com/ArkForgeLabs/Astra
10997
environment: production
11098

111-
- name: Save Cache
112-
id: cache-cargo-save
113-
uses: actions/cache/save@v4
114-
with:
115-
path: |
116-
~/.cargo/bin/
117-
~/.cargo/registry/index/
118-
~/.cargo/registry/cache/
119-
~/.cargo/git/db/
120-
target/
121-
key: ${{ runner.os }}-cargo
122-
12399
- name: Update deployment status (success)
124100
if: success()
125101
uses: chrnorm/deployment-status@v2

.github/workflows/windows_release.yml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,6 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@v4
2121

22-
- name: Restore cache
23-
id: cache-cargo-restore
24-
uses: actions/cache@v4
25-
with:
26-
path: |
27-
~/.cargo/bin/
28-
~/.cargo/registry/index/
29-
~/.cargo/registry/cache/
30-
~/.cargo/git/db/
31-
target/
32-
key: ${{ runner.os }}-cargo
33-
3422
- run: |
3523
rustup toolchain install 1.92.0
3624
rustup override set 1.92.0
@@ -108,18 +96,6 @@ jobs:
10896
environment-url: https://github.com/ArkForgeLabs/Astra
10997
environment: production
11098

111-
- name: Save Cache
112-
id: cache-cargo-save
113-
uses: actions/cache/save@v4
114-
with:
115-
path: |
116-
~/.cargo/bin/
117-
~/.cargo/registry/index/
118-
~/.cargo/registry/cache/
119-
~/.cargo/git/db/
120-
target/
121-
key: ${{ runner.os }}-cargo
122-
12399
- name: Update deployment status (success)
124100
if: success()
125101
uses: chrnorm/deployment-status@v2

Cross.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
image = "ghcr.io/cross-rs/x86_64-unknown-linux-gnu:edge"
33
pre-build = [
44
'apt-get update && apt-get -y upgrade',
5-
# Need to upgrade gcc to a version that does have a bug (because aws-lc-sys's custom build script errors with this:
6-
# ### COMPILER BUG DETECTED ###
7-
# Your compiler (cc) is not supported due to a memcmp related bug reported in https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95189. We strongly recommend against using this compiler.
8-
'apt-get -y install gcc-10 && update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 60',
9-
]
5+
# Install clang
6+
'apt-get -y install clang',
7+
# Set clang as the default compiler
8+
'update-alternatives --install /usr/bin/cc cc /usr/bin/clang 60',
9+
]

0 commit comments

Comments
 (0)