Skip to content

Commit dcf36cb

Browse files
Test actions
1 parent d99d151 commit dcf36cb

File tree

2 files changed

+109
-108
lines changed

2 files changed

+109
-108
lines changed

.github/workflows/canary-release.yml

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
push:
88
branches:
99
- main
10+
- monica/testing-releases
1011
workflow_dispatch:
1112

1213
jobs:

.github/workflows/release.yml

+108-108
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,15 @@ jobs:
6161
if: ${{ runner.os == 'macOS' && inputs.profile == 'canary' }}
6262
run: dsymutil packages/*/*/*.node
6363
- name: Upload debug symbols
64-
uses: actions/upload-artifact@v4
64+
uses: actions/upload-artifact@v3
6565
if: ${{ inputs.profile == 'canary' }}
6666
with:
6767
name: debug-symbols-${{ matrix.name }}
6868
path: packages/*/*/*.node.dSYM/Contents/Resources/DWARF/*.node
6969
- name: Strip debug symbols # https://github.com/rust-lang/rust/issues/46034
7070
run: strip -x packages/*/*/*.node # Must use -x on macOS. This produces larger results on linux.
7171
- name: Upload artifacts
72-
uses: actions/upload-artifact@v4
72+
uses: actions/upload-artifact@v3
7373
with:
7474
name: bindings-${{ matrix.name }}
7575
path: packages/*/*/*.node
@@ -119,110 +119,110 @@ jobs:
119119
- name: Smoke test
120120
run: node -e 'require("@atlaspack/rust")'
121121

122-
build-linux-gnu-arm:
123-
strategy:
124-
fail-fast: false
125-
matrix:
126-
include:
127-
- target: arm-unknown-linux-gnueabihf
128-
arch: armhf
129-
strip: arm-linux-gnueabihf-strip
130-
objcopy: arm-linux-gnueabihf-objcopy
131-
cflags: -mfpu=neon
132-
- target: aarch64-unknown-linux-gnu
133-
arch: arm64
134-
strip: aarch64-linux-gnu-strip
135-
objcopy: aarch64-linux-gnu-objcopy
136-
cflags: ''
137-
name: ${{ matrix.target }}
138-
runs-on: ubuntu-20.04
139-
steps:
140-
- uses: actions/checkout@v4
141-
- name: Install Rust
142-
uses: dtolnay/rust-toolchain@master
143-
with:
144-
toolchain: stable
145-
target: ${{ matrix.target }}
146-
- name: Install cross compile toolchains
147-
run: |
148-
sudo apt-get update
149-
sudo apt-get install gcc-arm-linux-gnueabihf gcc-aarch64-linux-gnu g++-aarch64-linux-gnu -y
150-
- uses: bahmutov/[email protected]
151-
- uses: Swatinem/rust-cache@v2
152-
if: ${{ inputs.type != 'latest' }}
153-
with:
154-
shared-key: ${{ matrix.target }}
155-
- name: Build native packages
156-
run: yarn build-native-${{ inputs.profile }}
157-
env:
158-
RUST_TARGET: ${{ matrix.target }}
159-
CFLAGS: ${{ matrix.cflags }}
160-
- name: Extract debug symbols
161-
if: ${{ inputs.profile == 'canary' }}
162-
run: |
163-
find packages -name "*.node" -type f -exec ${{ matrix.objcopy }} --only-keep-debug --compress-debug-sections=zlib {} {}.debug \;
164-
find packages -name "*.node" -type f -exec ${{ matrix.objcopy }} --strip-debug --strip-unneeded {} \;
165-
find packages -name "*.node" -type f -exec ${{ matrix.objcopy }} --add-gnu-debuglink={}.debug {} \;
166-
- name: Upload debug symbols
167-
uses: actions/upload-artifact@v4
168-
if: ${{ inputs.profile == 'canary' }}
169-
with:
170-
name: debug-symbols-${{ matrix.target }}
171-
path: packages/*/*/*.node.debug
172-
- name: Strip debug symbols # https://github.com/rust-lang/rust/issues/46034
173-
run: ${{ matrix.strip }} packages/*/*/*.node
174-
- name: Upload artifacts
175-
uses: actions/upload-artifact@v4
176-
with:
177-
name: bindings-${{ matrix.target }}
178-
path: packages/*/*/*.node
179-
- name: Debug
180-
run: ls -l packages/*/*/*.node
181-
- name: Configure binfmt-support
182-
run: docker run --rm --privileged multiarch/qemu-user-static:register --reset
183-
- name: Smoke test
184-
uses: addnab/docker-run-action@v3
185-
with:
186-
image: ghcr.io/devongovett/multiarch-node:node14-${{ matrix.arch }}-focal
187-
options: -v ${{github.workspace}}:/work
188-
run: cd /work && node -e "require('@atlaspack/rust')"
122+
# build-linux-gnu-arm:
123+
# strategy:
124+
# fail-fast: false
125+
# matrix:
126+
# include:
127+
# - target: arm-unknown-linux-gnueabihf
128+
# arch: armhf
129+
# strip: arm-linux-gnueabihf-strip
130+
# objcopy: arm-linux-gnueabihf-objcopy
131+
# cflags: -mfpu=neon
132+
# - target: aarch64-unknown-linux-gnu
133+
# arch: arm64
134+
# strip: aarch64-linux-gnu-strip
135+
# objcopy: aarch64-linux-gnu-objcopy
136+
# cflags: ''
137+
# name: ${{ matrix.target }}
138+
# runs-on: ubuntu-20.04
139+
# steps:
140+
# - uses: actions/checkout@v4
141+
# - name: Install Rust
142+
# uses: dtolnay/rust-toolchain@master
143+
# with:
144+
# toolchain: stable
145+
# target: ${{ matrix.target }}
146+
# - name: Install cross compile toolchains
147+
# run: |
148+
# sudo apt-get update
149+
# sudo apt-get install gcc-arm-linux-gnueabihf gcc-aarch64-linux-gnu g++-aarch64-linux-gnu -y
150+
# - uses: bahmutov/[email protected]
151+
# - uses: Swatinem/rust-cache@v2
152+
# if: ${{ inputs.type != 'latest' }}
153+
# with:
154+
# shared-key: ${{ matrix.target }}
155+
# - name: Build native packages
156+
# run: yarn build-native-${{ inputs.profile }}
157+
# env:
158+
# RUST_TARGET: ${{ matrix.target }}
159+
# CFLAGS: ${{ matrix.cflags }}
160+
# - name: Extract debug symbols
161+
# if: ${{ inputs.profile == 'canary' }}
162+
# run: |
163+
# find packages -name "*.node" -type f -exec ${{ matrix.objcopy }} --only-keep-debug --compress-debug-sections=zlib {} {}.debug \;
164+
# find packages -name "*.node" -type f -exec ${{ matrix.objcopy }} --strip-debug --strip-unneeded {} \;
165+
# find packages -name "*.node" -type f -exec ${{ matrix.objcopy }} --add-gnu-debuglink={}.debug {} \;
166+
# - name: Upload debug symbols
167+
# uses: actions/upload-artifact@v4
168+
# if: ${{ inputs.profile == 'canary' }}
169+
# with:
170+
# name: debug-symbols-${{ matrix.target }}
171+
# path: packages/*/*/*.node.debug
172+
# - name: Strip debug symbols # https://github.com/rust-lang/rust/issues/46034
173+
# run: ${{ matrix.strip }} packages/*/*/*.node
174+
# - name: Upload artifacts
175+
# uses: actions/upload-artifact@v4
176+
# with:
177+
# name: bindings-${{ matrix.target }}
178+
# path: packages/*/*/*.node
179+
# - name: Debug
180+
# run: ls -l packages/*/*/*.node
181+
# - name: Configure binfmt-support
182+
# run: docker run --rm --privileged multiarch/qemu-user-static:register --reset
183+
# - name: Smoke test
184+
# uses: addnab/docker-run-action@v3
185+
# with:
186+
# image: ghcr.io/devongovett/multiarch-node:node14-${{ matrix.arch }}-focal
187+
# options: -v ${{github.workspace}}:/work
188+
# run: cd /work && node -e "require('@atlaspack/rust')"
189189

190-
build-and-release:
191-
name: Build and release
192-
needs:
193-
- build-linux-gnu-arm
194-
- build-linux-gnu-x64
195-
- build-macos
196-
runs-on: ubuntu-20.04
197-
steps:
198-
- uses: actions/checkout@v4
199-
with:
200-
fetch-depth: 0
201-
- uses: bahmutov/[email protected]
202-
- name: Build native packages
203-
run: yarn build-native-${{ inputs.profile }}
204-
- name: Download artifacts
205-
uses: actions/download-artifact@v4
206-
with:
207-
path: artifacts
208-
- name: Move bindings
209-
run: for d in artifacts/bindings-*/*/*; do cp $d/*.node packages/$(basename $(dirname $d))/$(basename $d); done
210-
- name: Move debug symbols
211-
if: ${{ inputs.profile == 'canary' }}
212-
run: |
213-
mkdir debug-symbols
214-
find artifacts -name "*.debug" -exec cp {} debug-symbols/ \;
215-
find artifacts -name "*.node" -path "**/DWARF/**" -exec cp {} debug-symbols/ \;
216-
ls -l debug-symbols
217-
- name: Upload combined debug symbols artifact
218-
uses: actions/upload-artifact@v4
219-
if: ${{ inputs.profile == 'canary' }}
220-
with:
221-
name: debug-symbols
222-
path: debug-symbols/**
223-
- name: Debug
224-
run: ls -l packages/*/*/*.node
225-
- run: echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} > .npmrc
226-
env:
227-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
228-
- run: ${{ inputs.release-command }}
190+
# build-and-release:
191+
# name: Build and release
192+
# needs:
193+
# - build-linux-gnu-arm
194+
# - build-linux-gnu-x64
195+
# - build-macos
196+
# runs-on: ubuntu-20.04
197+
# steps:
198+
# - uses: actions/checkout@v4
199+
# with:
200+
# fetch-depth: 0
201+
# - uses: bahmutov/[email protected]
202+
# - name: Build native packages
203+
# run: yarn build-native-${{ inputs.profile }}
204+
# - name: Download artifacts
205+
# uses: actions/download-artifact@v4
206+
# with:
207+
# path: artifacts
208+
# - name: Move bindings
209+
# run: for d in artifacts/bindings-*/*/*; do cp $d/*.node packages/$(basename $(dirname $d))/$(basename $d); done
210+
# - name: Move debug symbols
211+
# if: ${{ inputs.profile == 'canary' }}
212+
# run: |
213+
# mkdir debug-symbols
214+
# find artifacts -name "*.debug" -exec cp {} debug-symbols/ \;
215+
# find artifacts -name "*.node" -path "**/DWARF/**" -exec cp {} debug-symbols/ \;
216+
# ls -l debug-symbols
217+
# - name: Upload combined debug symbols artifact
218+
# uses: actions/upload-artifact@v4
219+
# if: ${{ inputs.profile == 'canary' }}
220+
# with:
221+
# name: debug-symbols
222+
# path: debug-symbols/**
223+
# - name: Debug
224+
# run: ls -l packages/*/*/*.node
225+
# - run: echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} > .npmrc
226+
# env:
227+
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
228+
# - run: ${{ inputs.release-command }}

0 commit comments

Comments
 (0)