Skip to content

Commit

Permalink
Upgrade to latest versions of GitHub actions/* :/.
Browse files Browse the repository at this point in the history
  • Loading branch information
saurik committed Feb 27, 2024
1 parent 8ae3ab7 commit 514996b
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 37 deletions.
2 changes: 1 addition & 1 deletion .github/actions/submodule/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ runs:
id: git-submodule-status
shell: bash
run: echo "::set-output name=hash::$(git submodule status | sed -e 's/^.\([^ ]*\) \([^ ]*\).*/\2 \1/' | LANG=C sort | openssl sha1 -binary | xxd -p -c20)"
- uses: actions/cache@v3
- uses: actions/cache@v4
with:
path: .git/modules
key: git-modules-${{ steps.git-submodule-status.outputs.hash }}
Expand Down
72 changes: 36 additions & 36 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ jobs:
runs-on: macos-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: env/setup.sh
- uses: ./.github/actions/submodule

- uses: actions/setup-java@v3
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
Expand All @@ -25,7 +25,7 @@ jobs:
runs-on: macos-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: env/setup.sh
- uses: ./.github/actions/submodule

Expand All @@ -38,15 +38,15 @@ jobs:
steps:
- run: sudo rm -rf /opt

- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: env/setup.sh
- uses: ./.github/actions/submodule

- run: env/setup-ndk.sh

- run: make -j3 -C app-android precache='--no-ios'

- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v4
with:
name: orchid-apk
path: app-android/out-and/Orchid.apk
Expand All @@ -58,7 +58,7 @@ jobs:
steps:
- run: sudo rm -rf /opt

- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: env/setup-git.sh
- uses: ./.github/actions/submodule

Expand All @@ -70,7 +70,7 @@ jobs:
runs-on: macos-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: env/setup.sh
- uses: ./.github/actions/submodule

Expand All @@ -81,13 +81,13 @@ jobs:
runs-on: macos-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: env/setup.sh
- uses: ./.github/actions/submodule

- run: make -j3 -C eth-sender

- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v4
with:
name: cj-mac
path: eth-sender/out-mac/x86_64/cj
Expand All @@ -97,13 +97,13 @@ jobs:
runs-on: macos-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: env/setup.sh
- uses: ./.github/actions/submodule

- run: make -j3 -C cli-shared

- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v4
with:
name: orchidcd-mac
path: cli-shared/out-mac/x86_64/orchidcd
Expand All @@ -114,15 +114,15 @@ jobs:

if: ${{ false }} # XXX: Hypervisor.framework
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: env/setup.sh
- uses: ./.github/actions/submodule

- uses: ./.github/actions/nerdctl

- run: make -j3 -C srv-daemon

- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v4
with:
name: orchidd-mac
path: srv-daemon/out-mac/x86_64/orchidd
Expand All @@ -135,7 +135,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: env/setup.sh
- uses: ./.github/actions/submodule

Expand All @@ -144,7 +144,7 @@ jobs:
- run: debug=crossndk make -j3 -C app-windows ./env/dotdot/gui-orchid/.flutter-plugins
- run: debug=crossndk make -j3 -C app-windows target=win precache='--no-android --no-ios --windows -a'

- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v4
with:
name: orchid-win
path: app-windows/out-win/package
Expand All @@ -154,15 +154,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: env/setup.sh
- uses: ./.github/actions/submodule

- run: DEBIAN_FRONTEND=noninteractive sudo -EH apt-get -y install mingw-w64

- run: make -j3 -C eth-sender target=win

- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v4
with:
name: cj-win
path: eth-sender/out-win/x86_64/cj.exe
Expand All @@ -172,15 +172,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: env/setup.sh
- uses: ./.github/actions/submodule

- run: DEBIAN_FRONTEND=noninteractive sudo -EH apt-get -y install mingw-w64

- run: make -j3 -C cli-shared target=win

- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v4
with:
name: orchidcd-win
path: cli-shared/out-win/x86_64/orchidcd.exe
Expand All @@ -191,7 +191,7 @@ jobs:

if: ${{ false }} # XXX: use Hyper-V
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: env/setup.sh
- uses: ./.github/actions/submodule

Expand All @@ -200,7 +200,7 @@ jobs:

- run: make -j3 -C srv-daemon target=win

- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v4
with:
name: orchidd-w64
path: srv-daemon/out-win/x86_64/orchidd.exe
Expand All @@ -213,14 +213,14 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: env/setup.sh
- uses: ./.github/actions/submodule

- run: debug=crossndk make -j3 -C app-linux ./env/dotdot/gui-orchid/.flutter-plugins
- run: debug=crossndk make -j3 -C app-linux precache='--no-android --no-ios --linux'

- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v4
with:
name: orchid-lnx
path: app-linux/out-lnx/package
Expand All @@ -230,7 +230,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: env/setup.sh
- uses: ./.github/actions/submodule

Expand All @@ -246,13 +246,13 @@ jobs:
machine: [x86_64, arm64, armhf]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: env/setup.sh
- uses: ./.github/actions/submodule

- run: debug=crossndk make -j3 -C cli-shared machine=${{ matrix.machine }}

- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v4
with:
name: orchidcd-lnx-${{ matrix.machine }}
path: cli-shared/out-lnx/${{ matrix.machine }}/orchidcd
Expand All @@ -268,15 +268,15 @@ jobs:
machine: [x86_64, arm64]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: env/setup.sh
- uses: ./.github/actions/submodule

- run: env/setup-ndk.sh

- run: debug=crossndk make -j3 -C srv-daemon machine=${{ matrix.machine }}

- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v4
with:
name: orchidd-lnx-${{ matrix.machine }}
path: srv-daemon/out-lnx/${{ matrix.machine }}/orchidd
Expand All @@ -291,7 +291,7 @@ jobs:
steps:
- run: sudo rm -rf /opt

- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: env/setup-git.sh
- uses: ./.github/actions/submodule

Expand All @@ -304,12 +304,12 @@ jobs:
steps:
- run: sudo rm -rf /opt

- uses: actions/checkout@v2
- uses: actions/checkout@v4

- run: docker build --build-arg GIT_REPOSITORY=https://github.com/${{ github.repository }}.git --build-arg GIT_COMMIT=${{ github.sha }} --build-arg GIT_SETUP=env/setup-git.sh -t orchidd:latest srv-docker
- run: docker save -o orchidd.tar orchidd:latest

- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v4
with:
name: orchidd-dkr
path: orchidd.tar
Expand All @@ -319,7 +319,7 @@ jobs:
runs-on: macos-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: env/setup.sh
- uses: ./.github/actions/submodule

Expand All @@ -328,7 +328,7 @@ jobs:

- run: make -j3 -C srv-daemon target=lnx

- uses: actions/upload-artifact@v1
- uses: actions/upload-artifact@v4
with:
name: orchidd-lnx-amd64
path: srv-daemon/out-lnx/x86_64/orchidd
Expand All @@ -338,7 +338,7 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- run: env/setup.sh
- uses: ./.github/actions/submodule

Expand All @@ -350,13 +350,13 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: orchidd-dkr
- run: tar -xvf orchidd.tar
- run: tar -xvf "$(jq -r '.[0].Layers | .[]' manifest.json | tail -n1)"

- uses: actions/download-artifact@v2
- uses: actions/download-artifact@v4
with:
name: orchidd-lnx-amd64

Expand Down

0 comments on commit 514996b

Please sign in to comment.