Compare commits
No commits in common. "2d977b03a40c6a23189a00b66186b5aa7b677662" and "9e02196dd0ec1f180bedf50aa0ec1b195bb24fff" have entirely different histories.
2d977b03a4
...
9e02196dd0
|
@ -2,14 +2,14 @@ name: AWS-Zig Build
|
||||||
run-name: ${{ github.actor }} building AWS Zig SDK
|
run-name: ${{ github.actor }} building AWS Zig SDK
|
||||||
on: [push]
|
on: [push]
|
||||||
jobs:
|
jobs:
|
||||||
build-zig-0.11.0-amd64-host:
|
build-zig-0.9-amd64-host:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
# Need to use the default container with node and all that, so we can
|
# Need to use the default container with node and all that, so we can
|
||||||
# use JS-based actions like actions/checkout@v3...
|
# use JS-based actions like actions/checkout@v3...
|
||||||
# container:
|
# container:
|
||||||
# image: alpine:3.15.0
|
# image: alpine:3.15.0
|
||||||
env:
|
env:
|
||||||
ZIG_VERSION: 0.11.0
|
ZIG_VERSION: 0.9.0
|
||||||
ARCH: x86_64
|
ARCH: x86_64
|
||||||
steps:
|
steps:
|
||||||
- name: Check out repository code
|
- name: Check out repository code
|
||||||
|
@ -24,6 +24,7 @@ jobs:
|
||||||
- run: ln -s /usr/local/zig-linux-${ARCH}-${ZIG_VERSION}/zig /usr/local/bin/zig
|
- run: ln -s /usr/local/zig-linux-${ARCH}-${ZIG_VERSION}/zig /usr/local/bin/zig
|
||||||
- run: apt update && apt install --no-install-recommends git
|
- run: apt update && apt install --no-install-recommends git
|
||||||
- run: (cd codegen && zig build test)
|
- run: (cd codegen && zig build test)
|
||||||
|
- run: zig build -Dfetch # implicitly does a codegen
|
||||||
- run: zig build test
|
- run: zig build test
|
||||||
- run: zig build -Dtarget=arm-linux
|
- run: zig build -Dtarget=arm-linux
|
||||||
- run: zig build -Dtarget=x86_64-windows
|
- run: zig build -Dtarget=x86_64-windows
|
||||||
|
@ -32,7 +33,7 @@ jobs:
|
||||||
- run: zig build -Dtarget=x86_64-macos
|
- run: zig build -Dtarget=x86_64-macos
|
||||||
- run: zig build -Dtarget=aarch64-macos
|
- run: zig build -Dtarget=aarch64-macos
|
||||||
- name: Notify
|
- name: Notify
|
||||||
uses: https://git.lerch.org/lobo/action-notify-ntfy@v2
|
uses: https://git.lerch.org/lobo/action-notify-ntfy@v1
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
host: ${{ secrets.NTFY_HOST }}
|
host: ${{ secrets.NTFY_HOST }}
|
||||||
|
|
|
@ -202,9 +202,6 @@ pub fn main() anyerror!void {
|
||||||
const more = try aws.Request(services.ec2.describe_instances)
|
const more = try aws.Request(services.ec2.describe_instances)
|
||||||
.call(.{ .next_token = next_token, .max_results = 6 }, options);
|
.call(.{ .next_token = next_token, .max_results = 6 }, options);
|
||||||
defer more.deinit();
|
defer more.deinit();
|
||||||
// we could have exactly 6, which means we have a next token(?!) but not
|
|
||||||
// any actual additional data
|
|
||||||
if (more.response.reservations == null) break;
|
|
||||||
std.log.info("reservation count: {d}", .{more.response.reservations.?.len});
|
std.log.info("reservation count: {d}", .{more.response.reservations.?.len});
|
||||||
var batch_items: usize = 0;
|
var batch_items: usize = 0;
|
||||||
for (more.response.reservations.?) |reservation| {
|
for (more.response.reservations.?) |reservation| {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user