Skip to content

Commit e4a5eec

Browse files
authored
tweak ecr thing plus add mac arm forwarder (#63)
* tweak ecr thing plus add mac arm forwarder * tweak caches
1 parent 950c718 commit e4a5eec

File tree

1 file changed

+18
-7
lines changed

1 file changed

+18
-7
lines changed

.github/workflows/release.yaml

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- run: cargo install cross
3737
- uses: Swatinem/rust-cache@v2
3838
with:
39-
key: "release-forwarder-bin-linux"
39+
key: "release-forwarder-bin-linux-windows-cross"
4040
- name: Build forwarder release
4141
run: cross build --release --target x86_64-pc-windows-gnu --bin forwarder
4242
- run: mv target/x86_64-pc-windows-gnu/release/forwarder.exe target/x86_64-pc-windows-gnu/release/forwarder-windows.exe
@@ -52,15 +52,30 @@ jobs:
5252
- run: rustup toolchain install stable --profile minimal --target x86_64-apple-darwin
5353
- uses: Swatinem/rust-cache@v2
5454
with:
55-
key: "release-forwarder-bin-macos"
55+
key: "release-forwarder-bin-macos-x86"
5656
- name: Build forwarder release
5757
run: cargo build --release --target x86_64-apple-darwin --bin forwarder
5858
- run: mv target/x86_64-apple-darwin/release/forwarder target/x86_64-apple-darwin/release/forwarder-macos-x86
5959
- name: Upload file
6060
uses: softprops/action-gh-release@v1
6161
with:
6262
files: target/x86_64-apple-darwin/release/forwarder-macos-x86
63-
# TODO: mac arm - aarch64-apple-darwin
63+
64+
build-forwarder-binaries-mac-arm:
65+
runs-on: macos-latest
66+
steps:
67+
- uses: actions/checkout@v3
68+
- run: rustup toolchain install stable --profile minimal --target aarch64-apple-darwin
69+
- uses: Swatinem/rust-cache@v2
70+
with:
71+
key: "release-forwarder-bin-macos-arm"
72+
- name: Build forwarder release
73+
run: cargo build --release --target aarch64-apple-darwin --bin forwarder
74+
- run: mv target/aarch64-apple-darwin/release/forwarder target/aarch64-apple-darwin/release/forwarder-macos-arm
75+
- name: Upload file
76+
uses: softprops/action-gh-release@v1
77+
with:
78+
files: target/aarch64-apple-darwin/release/forwarder-macos-arm
6479

6580
build-receiver-image:
6681
runs-on: ubuntu-latest
@@ -101,10 +116,6 @@ jobs:
101116
aws-region: us-east-1
102117
- name: log in to ecr
103118
uses: aws-actions/amazon-ecr-login@v1
104-
with:
105-
registry: 413471642455.dkr.ecr.us-east-1.amazonaws.com
106-
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
107-
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
108119

109120
# also do github packages
110121
- name: Log in to the Github Packages Container registry

0 commit comments

Comments
 (0)