Skip to content

Commit 613256c

Browse files
committed
Run cargo-update and use ubuntu-22.04
Signed-off-by: Charalampos Mitrodimas <charalampos@wasmer.io>
1 parent 9e8b9bc commit 613256c

File tree

7 files changed

+78
-76
lines changed

7 files changed

+78
-76
lines changed

.github/workflows/ci.yml

Lines changed: 64 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
workflow_call:
88
jobs:
99
build-libc:
10-
runs-on: ubuntu-latest-8-cores
10+
runs-on: ubuntu-22.04
1111
steps:
1212
- name: show git config
1313
run: |
@@ -17,10 +17,10 @@ jobs:
1717
ls -lha ./wasix-libc || true
1818
1919
- name: Check out wasix-libc
20-
uses: actions/checkout@v3
20+
uses: actions/checkout@v4
2121
with:
2222
repository: wasix-org/wasix-libc
23-
ref: main
23+
ref: wasm64-rust-toolchain
2424
path: wasix-libc
2525
submodules: "recursive"
2626

@@ -33,10 +33,10 @@ jobs:
3333
uses: dtolnay/rust-toolchain@stable
3434

3535
- name: Check out cargo-wasix
36-
uses: actions/checkout@v3
36+
uses: actions/checkout@v4
3737
with:
3838
repository: wasix-org/cargo-wasix
39-
ref: main
39+
ref: target-fix
4040
path: cargo-wasix
4141
fetch-depth: 2
4242

@@ -57,7 +57,7 @@ jobs:
5757
touch $GITHUB_WORKSPACE/.stub
5858
5959
- name: Archive build output
60-
uses: actions/upload-artifact@v3
60+
uses: actions/upload-artifact@v4
6161
with:
6262
name: wasix-libc
6363
path: |
@@ -71,36 +71,30 @@ jobs:
7171
matrix:
7272
include:
7373
- name: Windows (x86)
74-
os: windows-latest-8-cores
74+
os: windows-latest
7575
arch: x86
7676

7777
- name: Ubuntu (x86)
78-
os: ubuntu-latest-8-cores
78+
os: ubuntu-22.04
7979
arch: x86
8080

8181
- name: Mac (x86)
82-
os: macos-12-large
82+
os: macos-13
8383
arch: x86
8484

8585
- name: Mac (aarch64)
86-
os: macos-13-xlarge
86+
os: macos-15
8787
arch: aarch64
8888

8989
runs-on: ${{ matrix.os }}
9090
steps:
91-
- name: Install Rust
92-
uses: actions-rs/toolchain@v1
93-
if: ${{ !contains(matrix.os, 'windows') }}
94-
with:
95-
toolchain: stable
96-
9791
- name: Download wasix-libc artifact
98-
uses: actions/download-artifact@v3
92+
uses: actions/download-artifact@v4
9993
with:
10094
name: wasix-libc
10195

10296
- name: Check out repository code
103-
uses: actions/checkout@v3
97+
uses: actions/checkout@v4
10498
with:
10599
path: wasix-rust
106100
submodules: "recursive"
@@ -121,44 +115,12 @@ jobs:
121115
# uses: dtolnay/rust-toolchain@stable
122116

123117
- name: Check out cargo-wasix
124-
uses: actions/checkout@v3
118+
uses: actions/checkout@v4
125119
with:
126120
repository: wasix-org/cargo-wasix
127-
ref: main
121+
ref: target-fix
128122
path: cargo-wasix
129123

130-
# Linux!
131-
132-
- name: Setup (Ubuntu)
133-
if: matrix.arch == 'x86' && contains(matrix.os, 'ubuntu')
134-
shell: bash
135-
run: |
136-
sudo apt-get update
137-
sudo apt-get install -y build-essential curl wget xz-utils git python3 ninja-build cmake
138-
139-
- name: Build (Linux)
140-
if: matrix.arch == 'x86' && contains(matrix.os, 'ubuntu')
141-
shell: bash
142-
env:
143-
WASIX_NO_UPDATE_REPOS: "1"
144-
WASIX_COMPONENTS: rust
145-
WASIX_RUST_HOST: x86_64-unknown-linux-gnu
146-
run: |
147-
cd cargo-wasix
148-
# NOTE: must unset GITHUB_ACTIONS env var, because Rst bootstrap checks for it.
149-
# (see bootstrap config.rs)
150-
GITHUB_ACTIONS=false WASIX_BUILD_DIR=$GITHUB_WORKSPACE cargo run -- wasix build-toolchain
151-
152-
- name: Archive build output (Linux)
153-
uses: actions/upload-artifact@v3
154-
if: contains(matrix.os, 'ubuntu')
155-
with:
156-
name: rust-toolchain-x86_64-unknown-linux-gnu
157-
path: |
158-
wasix-rust/build/x86_64-unknown-linux-gnu/stage2
159-
!wasix-rust/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/src
160-
!wasix-rust/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/rustc-src
161-
162124
# Mac - x86
163125

164126
- name: Setup (Mac OS)
@@ -169,9 +131,22 @@ jobs:
169131
# Need ninja for building llvm (for aarch64 cross compile)
170132
brew install ninja
171133
134+
# Interlude: install rust now. For some reason, brew install removes cargo, so
135+
# we're doing this after as it keeps mac builds happy. This is ultimately a
136+
# hack, so if anybody knows why brew install removes cargo, please fix it and
137+
# move this step back up to where it originally was.
138+
139+
- name: Install Rust
140+
uses: actions-rs/toolchain@v1
141+
if: ${{ !contains(matrix.os, 'windows') }}
142+
with:
143+
toolchain: stable
144+
145+
# Mac - continued
146+
172147
- name: Build (Mac Os, x86)
173148
shell: bash
174-
if: contains(matrix.os, 'macos-12') && matrix.arch == 'x86'
149+
if: contains(matrix.os, 'macos-13') && matrix.arch == 'x86'
175150
env:
176151
WASIX_NO_UPDATE_REPOS: "1"
177152
GITHUB_ACTIONS: "false"
@@ -184,7 +159,7 @@ jobs:
184159
GITHUB_ACTIONS=false WASIX_BUILD_DIR=$GITHUB_WORKSPACE cargo run -- wasix build-toolchain
185160
186161
- name: Archive build output (Mac OS - x86)
187-
uses: actions/upload-artifact@v3
162+
uses: actions/upload-artifact@v4
188163
if: contains(matrix.os, 'macos') && matrix.arch == 'x86'
189164
with:
190165
name: rust-toolchain-x86_64-apple-darwin
@@ -210,7 +185,7 @@ jobs:
210185
GITHUB_ACTIONS=false WASIX_BUILD_DIR=$GITHUB_WORKSPACE cargo run -- wasix build-toolchain
211186
212187
- name: Archive build output (Mac OS - aarch64)
213-
uses: actions/upload-artifact@v3
188+
uses: actions/upload-artifact@v4
214189
if: contains(matrix.os, 'macos') && matrix.arch == 'aarch64'
215190
with:
216191
name: rust-toolchain-aarch64-apple-darwin
@@ -219,6 +194,38 @@ jobs:
219194
!wasix-rust/build/aarch64-apple-darwin/stage2/lib/rustlib/src
220195
!wasix-rust/build/aarch64-apple-darwin/stage2/lib/rustlib/rustc-src
221196
197+
# Linux!
198+
199+
- name: Setup (Ubuntu)
200+
if: matrix.arch == 'x86' && contains(matrix.os, 'ubuntu')
201+
shell: bash
202+
run: |
203+
sudo apt-get update
204+
sudo apt-get install -y build-essential curl wget xz-utils git python3 ninja-build cmake
205+
206+
- name: Build (Linux)
207+
if: matrix.arch == 'x86' && contains(matrix.os, 'ubuntu')
208+
shell: bash
209+
env:
210+
WASIX_NO_UPDATE_REPOS: "1"
211+
WASIX_COMPONENTS: rust
212+
WASIX_RUST_HOST: x86_64-unknown-linux-gnu
213+
run: |
214+
cd cargo-wasix
215+
# NOTE: must unset GITHUB_ACTIONS env var, because Rst bootstrap checks for it.
216+
# (see bootstrap config.rs)
217+
GITHUB_ACTIONS=false WASIX_BUILD_DIR=$GITHUB_WORKSPACE cargo run -- wasix build-toolchain
218+
219+
- name: Archive build output (Linux)
220+
uses: actions/upload-artifact@v4
221+
if: contains(matrix.os, 'ubuntu')
222+
with:
223+
name: rust-toolchain-x86_64-unknown-linux-gnu
224+
path: |
225+
wasix-rust/build/x86_64-unknown-linux-gnu/stage2
226+
!wasix-rust/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/src
227+
!wasix-rust/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/rustc-src
228+
222229
# Windows
223230

224231
# - name: Install chocolatey deps (Windows)
@@ -258,11 +265,12 @@ jobs:
258265
259266
- name: Archive build output (Windows)
260267
if: contains(matrix.os, 'windows') && matrix.arch == 'x86'
261-
uses: actions/upload-artifact@v3
268+
uses: actions/upload-artifact@v4
262269
with:
263270
name: rust-toolchain-x86_64-pc-windows-msvc
264271
# name: rust-toolchain-x86_64-pc-windows-gnu
265272
path: |
266273
wasix-rust/build/x86_64-pc-windows-msvc/stage2
267274
!wasix-rust/build/x86_64-pc-windows-msvc/stage2/lib/rustlib/src
268275
!wasix-rust/build/x86_64-pc-windows-msvc/stage2/lib/rustlib/rustc-src
276+

.github/workflows/dependencies.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
not-waiting-on-bors:
2828
if: github.repository_owner == 'rust-lang'
2929
name: skip if S-waiting-on-bors
30-
runs-on: ubuntu-latest
30+
runs-on: ubuntu-22.04
3131
steps:
3232
- env:
3333
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -47,7 +47,7 @@ jobs:
4747
if: github.repository_owner == 'rust-lang'
4848
name: update dependencies
4949
needs: not-waiting-on-bors
50-
runs-on: ubuntu-latest
50+
runs-on: ubuntu-22.04
5151
steps:
5252
- name: checkout the source code
5353
uses: actions/checkout@v4
@@ -94,7 +94,7 @@ jobs:
9494
if: github.repository_owner == 'rust-lang'
9595
name: amend PR
9696
needs: update
97-
runs-on: ubuntu-latest
97+
runs-on: ubuntu-22.04
9898
permissions:
9999
contents: write
100100
pull-requests: write

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ jobs:
1010

1111
release:
1212
needs: build
13-
runs-on: ubuntu-latest
13+
runs-on: ubuntu-22.04
1414
permissions:
1515
contents: write
1616
steps:
1717
- name: Download artifacts
18-
uses: actions/download-artifact@v3
18+
uses: actions/download-artifact@v4
1919
with:
2020
path: artifacts
2121
- name: Compress artifacts

Cargo.lock

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1966,8 +1966,7 @@ checksum = "baff4b617f7df3d896f97fe922b64817f6cd9a756bb81d40f8883f2f66dcb401"
19661966
[[package]]
19671967
name = "libc"
19681968
version = "0.2.164"
1969-
source = "registry+https://github.com/rust-lang/crates.io-index"
1970-
checksum = "433bfe06b8c75da9b2e3fbea6e5329ff87748f0b144ef75306e674c3f6f7c13f"
1969+
source = "git+https://github.com/wasix-org/libc.git?branch=wasix-0.2.164#eb0350e60d4e62cdd97e672fc7b94dd5f4ce83f4"
19711970

19721971
[[package]]
19731972
name = "libdbus-sys"
@@ -6342,8 +6341,3 @@ dependencies = [
63426341
"quote",
63436342
"syn 2.0.87",
63446343
]
6345-
6346-
[[patch.unused]]
6347-
name = "libc"
6348-
version = "0.2.155"
6349-
source = "git+https://github.com/wasix-org/libc.git?branch=wasix-0.2.155#cbaadd9965b725ba984a371b817e559d9da36187"

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,4 +95,4 @@ codegen-units = 1
9595
# lto = true
9696

9797
[patch.crates-io]
98-
libc = { git = "https://github.com/wasix-org/libc.git", branch = "wasix-0.2.155" }
98+
libc = { git = "https://github.com/wasix-org/libc.git", branch = "wasix-0.2.164" }

library/Cargo.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -158,17 +158,17 @@ dependencies = [
158158

159159
[[package]]
160160
name = "libc"
161-
version = "0.2.155"
162-
source = "git+https://github.com/wasix-org/libc.git?branch=wasix-0.2.155#cbaadd9965b725ba984a371b817e559d9da36187"
161+
version = "0.2.162"
162+
source = "registry+https://github.com/rust-lang/crates.io-index"
163+
checksum = "18d287de67fe55fd7e1581fe933d965a5a9477b38e949cfa9f8574ef01506398"
163164
dependencies = [
164165
"rustc-std-workspace-core",
165166
]
166167

167168
[[package]]
168169
name = "libc"
169-
version = "0.2.162"
170-
source = "registry+https://github.com/rust-lang/crates.io-index"
171-
checksum = "18d287de67fe55fd7e1581fe933d965a5a9477b38e949cfa9f8574ef01506398"
170+
version = "0.2.164"
171+
source = "git+https://github.com/wasix-org/libc.git?branch=wasix-0.2.164#eb0350e60d4e62cdd97e672fc7b94dd5f4ce83f4"
172172
dependencies = [
173173
"rustc-std-workspace-core",
174174
]
@@ -342,7 +342,7 @@ dependencies = [
342342
"fortanix-sgx-abi",
343343
"hashbrown",
344344
"hermit-abi",
345-
"libc 0.2.155",
345+
"libc 0.2.164",
346346
"miniz_oxide",
347347
"object",
348348
"panic_abort",

library/std/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ miniz_oxide = { version = "0.7.0", optional = true, default-features = false }
3434
addr2line = { version = "0.22.0", optional = true, default-features = false }
3535

3636
[target.'cfg(not(all(windows, target_env = "msvc")))'.dependencies]
37-
libc = { git = "https://github.com/wasix-org/libc.git", branch = "wasix-0.2.155", version = "0.2.155", default-features = false, features = ['rustc-dep-of-std'], public = true }
37+
libc = { git = "https://github.com/wasix-org/libc.git", branch = "wasix-0.2.164", version = "0.2.164", default-features = false, features = ['rustc-dep-of-std'], public = true }
3838

3939
[target.'cfg(all(not(target_os = "aix"), not(all(windows, target_env = "msvc", not(target_vendor = "uwp")))))'.dependencies]
4040
object = { version = "0.36.0", default-features = false, optional = true, features = [

0 commit comments

Comments
 (0)